From 419fa6a2ab50dcb0861da5968a776f058fde35f4 Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 24 Oct 2022 08:42:26 -0500 Subject: [PATCH] Rename sym --active to sym --set-active --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6396f5c..d16ea6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -243,7 +243,7 @@ fn main() -> Result<(), anyhow::Error> { .short('f') .required(true) .takes_value(true) - .help("The formap to print the values in ()"), + .help("The format to print the values in ()"), ) .arg(Arg::new("addr").required(true)) .about("Peek a memory address"), @@ -326,7 +326,7 @@ fn main() -> Result<(), anyhow::Error> { .short('a') .action(ArgAction::SetTrue) .requires("file") - .conflicts_with_all(&["delete", "active"]) + .conflicts_with_all(&["delete", "set-active"]) .help("Append the file's symbols to the loaded list of symbols"), ) .arg( @@ -335,12 +335,12 @@ fn main() -> Result<(), anyhow::Error> { .short('d') .action(ArgAction::SetTrue) .requires("file") - .conflicts_with_all(&["append", "active"]) + .conflicts_with_all(&["append", "set-active"]) .help("Delete the symbol table instead of loading it"), ) .arg( - Arg::new("active") - .long("active") + Arg::new("set-active") + .long("set-active") .short('c') .takes_value(true) .value_parser(BoolishValueParser::new()) @@ -354,7 +354,7 @@ fn main() -> Result<(), anyhow::Error> { let table_name = Path::new(&file_path).file_name().unwrap().to_str().unwrap(); if args.get_flag("delete") { state.symbol_tables.delete(table_name)?; - } else if let Some(&active) = args.get_one::("active") { + } else if let Some(&active) = args.get_one::("set-active") { state.symbol_tables.set_active(table_name, active)?; } else { state