added help/version option to most executables

This commit is contained in:
Dustin Kirkland 2025-03-29 11:19:22 -05:00
commit d315ccbd89
2 changed files with 12 additions and 0 deletions

View file

@ -53,3 +53,8 @@ if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then
export BYOBU_DISTRO="$_RET"
BYOBU_INCLUDED_LIBS=1
fi
case "$1" in
-v|--version) [ "$(basename $0)" != "byobu" ] && exec byobu -v ;;
-h|--help) exec man $(basename $0) ;;
esac