From d315ccbd89412de186c859b485bc56b849e81792 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 29 Mar 2025 11:19:22 -0500 Subject: [PATCH] added help/version option to most executables --- debian/changelog | 7 +++++++ usr/lib/byobu/include/common | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index 3f944579..290b754e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 17 Sep 2024 19:46:50 -0500 + byobu (6.12-0ubuntu1) noble; urgency=medium * usr/share/byobu/profiles/bashrc: diff --git a/usr/lib/byobu/include/common b/usr/lib/byobu/include/common index 04ae4f4d..9081f6cb 100755 --- a/usr/lib/byobu/include/common +++ b/usr/lib/byobu/include/common @@ -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