Skip to content

Commit

Permalink
cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanugoel committed Jun 13, 2021
1 parent 9c987b7 commit d4c6702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ FLAGS:
OPTIONS:
-t, --title <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
```
Expand Down
4 changes: 1 addition & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!")]
Expand All @@ -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,

Expand Down

0 comments on commit d4c6702

Please sign in to comment.