-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Compared to the help output for the Rust apps, the bash help isn't as nice. In particular, would be good if the lists would align:
Examples:
% ./example.sh -h
Usage: ex [FLAGS] [baz]
Arguments:
[baz] Positional values
Flags:
--foo Flag value
--bar <bar> Option value
--defaulted <defaulted> Defaulted valueThe flags list should have the descriptions aligned like they are when using CLI in Rust
% ./mounted.sh -h
Usage: ex [--mount] <SUBCOMMAND>
Commands:
exec-task
help Print this message or the help of the given subcommand(s)
Flags:
--mount Display kdl spec for mounted tasksCommands should also be aligned
My own dotfiles helper script that I added some usage comments to:
% dotfiles -h
Manage dotfiles
Usage: dotfiles [FLAGS] <SUBCOMMAND>
Commands:
adopt Add changed configuration files to dotfiles
init Initialize dotfiles
list Show configuration status
unlink Unlink configuration
update Update configuration
help Print this message or the help of the given subcommand(s)
Flags:
-d --directory <DIR> dotfiles directory
-t --target <DIR> Target directory
-v --verbose VerboseThe commands and flags would be much easier to read if these were aligned.
Bonus if each section was bold like it also is in Rust.
I took a look but I didn't see where the bash help comes from.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels