Use hyphens instead of underscores

This commit is contained in:
Sharif Haason committed 2023-12-10 13:21:23 -05:00
1 parent 6a230d34a4
commit 4e66357618
1 file changed
+3 -3
+3 -3
View File
@@ -213,8 +213,8 @@ fn run() -> Result<()> {
.help("An alias for '--endianness=little'."), .help("An alias for '--endianness=little'."),
) )
.arg( .arg(
Arg::new("character_table") Arg::new("character-table")
.long("character_table") .long("character-table")
.value_name("FORMAT") .value_name("FORMAT")
.value_parser(["codepage-437", "ascii-only"]) .value_parser(["codepage-437", "ascii-only"])
.help( .help(
@@ -482,7 +482,7 @@ fn run() -> Result<()> {
}; };
let char_table = match matches let char_table = match matches
.get_one::<String>("character_table") .get_one::<String>("character-table")
.unwrap_or(&String::from("ascii-only")) .unwrap_or(&String::from("ascii-only"))
.as_ref() .as_ref()
{ {