diff --git a/src/main.rs b/src/main.rs index 66b1a32..7cee640 100644 --- a/src/main.rs +++ b/src/main.rs @@ -217,6 +217,7 @@ fn run() -> Result<()> { .long("character-table") .value_name("FORMAT") .value_parser(["codepage-437", "ascii-only"]) + .default_value("ascii-only") .help( "The character table that should be used. 'ascii-only' \ will show dots for non-ASCII characters, and 'codepage-437 \ @@ -483,7 +484,7 @@ fn run() -> Result<()> { let char_table = match matches .get_one::("character-table") - .unwrap_or(&String::from("ascii-only")) + .unwrap() .as_ref() { "ascii-only" => CharTable::AsciiOnly,