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:
David Peter authored and David Peter committed 2023-05-10 22:09:19 +02:00
1 parent 57d18482ba
commit 5f0373184f
1 file changed
+9 -2
+9 -2
View File
@@ -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")