This commit is contained in:
Volodymyr Patuta 2020-12-12 17:47:10 +01:00
parent 5e518c3366
commit 3ede77cdf5
1 changed files with 4 additions and 3 deletions

View File

@ -45,7 +45,7 @@ pub fn make_app() -> App<'static, 'static> {
SubCommand::with_name("list") SubCommand::with_name("list")
.alias("l") .alias("l")
.alias("ls") .alias("ls")
.about("List all notes or notes from a category") .about("List all notes or notes from a category.")
.arg( .arg(
Arg::with_name("category") Arg::with_name("category")
.help("List all notes from a category.") .help("List all notes from a category.")
@ -68,6 +68,7 @@ pub fn make_app() -> App<'static, 'static> {
) )
.subcommand( .subcommand(
SubCommand::with_name("show") SubCommand::with_name("show")
.about("Show note(s) in TextView.")
.arg( .arg(
Arg::with_name("all") Arg::with_name("all")
.help("Show all notes.") .help("Show all notes.")
@ -77,12 +78,12 @@ pub fn make_app() -> App<'static, 'static> {
) )
.arg( .arg(
Arg::with_name("category") Arg::with_name("category")
.help("Show all notes from a category/date") .help("Show all notes from a category/date.")
.short("c") .short("c")
.long("category") .long("category")
.conflicts_with("header"), .conflicts_with("header"),
) )
.arg(Arg::with_name("header").help("Name of the note.")), .arg(Arg::with_name("header").help("Name of the note.")),
) )
.subcommand(SubCommand::with_name("panic").help("Delete all notes.")) .subcommand(SubCommand::with_name("panic").about("Delete all notes."))
} }