From 4adf13b90661693730af89c6d3080c3a50a15b1c Mon Sep 17 00:00:00 2001 From: rajeev Date: Tue, 8 Oct 2024 13:06:23 +0530 Subject: [PATCH] Updating .script, .upgrade and .exit commads help text --- instrument-repl/src/repl.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/instrument-repl/src/repl.rs b/instrument-repl/src/repl.rs index 3ce4057..398b362 100644 --- a/instrument-repl/src/repl.rs +++ b/instrument-repl/src/repl.rs @@ -465,14 +465,16 @@ impl Repl { .subcommand_required(false) .help_template(CMD_TEMPLATE) .subcommand( - Command::new(".script").about("Send a script to the connected instrument") + Command::new(".script").about("Send a TSP script to the connected instrument") .help_template(SUBCMD_TEMPLATE) .disable_help_flag(true) .arg( Arg::new("help").short('h').long("help").help("Print help").action(ArgAction::SetTrue) ) .arg( - Arg::new("path").required_unless_present("help") + Arg::new("path") + .required_unless_present("help") + .help("Path to the TSP script file to be sent to the instrument") ) ) .subcommand( @@ -486,7 +488,9 @@ impl Repl { arg!(-s --slot "Collect information of a specific slot (if applicable) instead of the mainframe").value_parser(value_parser!(u16)) ) .arg( - Arg::new("path").required_unless_present("help") + Arg::new("path") + .required_unless_present("help") + .help("Path to the firmware file to be sent to the instrument") ) ) .subcommand( @@ -498,7 +502,7 @@ impl Repl { .subcommand( Command::new(".exit") .alias(".quit").help_template(SUBCMD_TEMPLATE) - .about("Exit the application") + .about("Disconnect from instrument and close terminal") .disable_help_flag(true) .arg( Arg::new("help").short('h').long("help").help("Print help").action(ArgAction::SetTrue)