The help text displayed by the opt module contains a summary of all
short options in the title. However, a cursory search showed that
most commandline tools don't do that. Thus, this "feature" may be
removed.
This commit removes the summary of short options from the title of
the help text.
opt_print_help() {
local short
- local shortopts
- shortopts=""
-
- for short in $(array_sort "${__opt_short[@]}"); do
- shortopts+="$short"
- done
-
- echo "Usage: ${0##*/} [-$shortopts]"
+ echo "Usage: ${0##*/} [OPTIONS]"
echo ""
echo "Options"