Skip to content

Commit

Permalink
refactor: remove apikey param from simple_sender
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanjpg committed Dec 30, 2023
1 parent b9d1d65 commit e61b72d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/simple_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
pretty_env_logger::init();

let mut device_token = String::new();
let mut api_key = String::new();

{
let mut ap = ArgumentParser::new();
ap.set_description("A simple FCM notification sender");
ap.refer(&mut device_token)
.add_option(&["-t", "--device_token"], Store, "Device token");
ap.refer(&mut api_key)
.add_option(&["-k", "--api_key"], Store, "API key");
ap.parse_args_or_exit();
}

Expand Down

0 comments on commit e61b72d

Please sign in to comment.