diff --git a/README.md b/README.md index 633dc13..d4349f0 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ FLAGS: OPTIONS: -t, --title Optional title for the notification [default: Sup!] -m, --message <message> Notify with this message --d, --destination <destination> [default: local] [possible values: local, telegram] +-d, --destination <destination> Choose where to send the notification to [default: local] [possible values: local, telegram] --chat-id <chat-id> {Telegram specific option} Chat id to which notification should be sent --bot-token <bot-token> {Telegram specific option } Optionally specify Telegram bot token in command instead of reading from env ``` diff --git a/src/cli.rs b/src/cli.rs index 4836c06..0ddc0f9 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -2,11 +2,9 @@ use std::process::Command; use clap::{crate_authors, crate_description, crate_version, AppSettings, Clap}; -/// Send a system notification #[derive(Clap)] #[clap(author = crate_authors!(), version=crate_version!(), about=crate_description!())] #[clap(setting = AppSettings::ColoredHelp, setting = AppSettings::DeriveDisplayOrder)] - pub struct Opts { /// Optional title for the notification #[clap(short, long, default_value = "Sup!")] @@ -16,7 +14,7 @@ pub struct Opts { #[clap(short, long)] pub message: String, - // Choose where to send the notification to + /// Choose where to send the notification to #[clap(short, long, possible_values=&["local", "telegram"], default_value="local")] pub destination: String,