mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
Rename ascii-only to 'default', as it is not only ASCII
This commit is contained in:
1 parent
ba89e88dfd
commit
711627bfe8
2 files changed
+12
-12
No files matched your search
+5
-5
@@ -217,12 +217,12 @@ fn run() -> Result<()> {
|
||||
Arg::new("character-table")
|
||||
.long("character-table")
|
||||
.value_name("FORMAT")
|
||||
.value_parser(["codepage-437", "ascii-only"])
|
||||
.default_value("ascii-only")
|
||||
.value_parser(["default", "codepage-437"])
|
||||
.default_value("default")
|
||||
.help(
|
||||
"The character table that should be used. 'ascii-only' \
|
||||
"The character table that should be used. 'default' \
|
||||
will show dots for non-ASCII characters, 'codepage-437' \
|
||||
will use Code page 437 for those characters."
|
||||
will use code page 437 for those characters."
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
@@ -496,7 +496,7 @@ fn run() -> Result<()> {
|
||||
.unwrap()
|
||||
.as_ref()
|
||||
{
|
||||
"ascii-only" => CharacterTable::AsciiOnly,
|
||||
"default" => CharacterTable::Default,
|
||||
"codepage-437" => CharacterTable::CP437,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user