added help/version option to most executables

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

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
byobu (6.13) unreleased; urgency=medium
* usr/lib/byobu/include/common:
- added -v|--version and -h|--help to most executables
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 17 Sep 2024 19:46:50 -0500
byobu (6.12-0ubuntu1) noble; urgency=medium
* usr/share/byobu/profiles/bashrc:

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