mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
Add --characters, change meaning of -C
This changes the meaning of `-C` to "show the character panel". The long version `--no-characters` can still be used to hide the character panel. closes #187
This commit is contained in:
1 parent
57d18482ba
commit
5f0373184f
1 file changed
+9
-2
+9
-2
@@ -128,10 +128,17 @@ fn run() -> Result<()> {
|
||||
))
|
||||
.arg(
|
||||
Arg::new("no_chars")
|
||||
.short('C')
|
||||
.long("no-characters")
|
||||
.action(ArgAction::SetFalse)
|
||||
.help("Whether to display the character panel on the right."),
|
||||
.help("Do not show the character panel on the right."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("chars")
|
||||
.short('C')
|
||||
.long("characters")
|
||||
.overrides_with("no_chars")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help("Show the character panel on the right. This is the default, unless --no-characters has been specified."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("no_position")
|
||||
|
||||
Reference in new issue
Block a user