Reformat the --help output to fit narrower terminals

Hard coding 'fedora-toolbox' instead of $0 was necessary to get a
pleasant layout while keeping the code simple. It's not a big deal
because once there's a build system in place most people will type
'fedora-toolbox', instead of the full path to the script.
This commit is contained in:
Debarshi Ray 2018-10-16 19:21:46 +02:00
parent 5739d4b2a9
commit ef05b5c7c1

View file

@ -179,9 +179,15 @@ exit_if_unrecognized_option()
usage() usage()
{ {
echo "Usage: $0 [--container <name>] [--release <release>] [-v | --verbose] create [--candidate-registry]" echo "Usage: fedora-toolbox [--container <name>]"
echo " or: $0 [--container <name>] [--release <release>] [-v | --verbose] enter" echo " [--release <release>]"
echo " or: $0 --help" echo " [-v | --verbose]"
echo " create [--candidate-registry]"
echo " or: fedora-toolbox [--container <name>]"
echo " [--release <release>]"
echo " [-v | --verbose]"
echo " enter"
echo " or: fedora-toolbox --help"
} }