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 value
The 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 tasks
Commands 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 Verbose
The 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.
Compared to the
helpoutput for the Rust apps, the bash help isn't as nice. In particular, would be good if the lists would align:Examples:
The
flagslist should have the descriptions aligned like they are when using CLI in RustCommandsshould also be alignedMy own
dotfileshelper script that I added someusagecomments to:The 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.