From 8181dc7281eefd06ef5034baf88c7148e1a7372b Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 24 Oct 2022 08:40:59 -0500 Subject: [PATCH] Add missing help --- src/main.rs | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index fd3879f..6396f5c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,10 +90,11 @@ fn main() -> Result<(), anyhow::Error> { .help("The card number to send the command to"), ) .arg( - Arg::new("args") + Arg::new("cmd") .required(true) .multiple_values(true) - .takes_value(true), + .takes_value(true) + .help("The command to send"), ) .about("Send a command to a card"), |args, state| { @@ -106,7 +107,7 @@ fn main() -> Result<(), anyhow::Error> { .ok_or_else(|| anyhow!("Card {} does not exist", num))? .cmd( &args - .get_many::("args") + .get_many::("cmd") .unwrap() .map(String::as_str) .collect_vec(), @@ -231,8 +232,19 @@ fn main() -> Result<(), anyhow::Error> { ) .with_command( Command::new("peek") - .arg(Arg::new("count").short('c').takes_value(true)) - .arg(Arg::new("fmt").short('f').required(true).takes_value(true)) + .arg( + Arg::new("count") + .short('c') + .takes_value(true) + .help("The count of values to print"), + ) + .arg( + Arg::new("fmt") + .short('f') + .required(true) + .takes_value(true) + .help("The formap to print the values in ()"), + ) .arg(Arg::new("addr").required(true)) .about("Peek a memory address"), |args, state| { @@ -333,7 +345,8 @@ fn main() -> Result<(), anyhow::Error> { .takes_value(true) .value_parser(BoolishValueParser::new()) .requires("file") - .conflicts_with_all(&["append", "delete"]), + .conflicts_with_all(&["append", "delete"]) + .help("Set whether the symbol table is active or not"), ) .about("Load symbols from an ELF file, or list symbols if no file provided"), |args, state| {