The opt module references $BASH_ARGV0 to get the name of the running
script. However, the variable does not exist on older bash versions,
causing a gap in the help text.
This commit modifies the opt module to access the script name from
$0, which should be available on all bash versions.
shortopts+="$short"
done
- echo "Usage: $BASH_ARGV0 [-$shortopts]"
+ echo "Usage: ${0##*/} [-$shortopts]"
echo ""
echo "Options"