From 5d4be711e4fd1ac2a06b3a7f8184b16b611d6399 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 15 Nov 2015 14:12:25 +0000 Subject: pbuilder: add an (undocumented) --help operation. Exit 0 if the help was requested --- pbuilder | 6 ++++++ pbuilder-checkparams | 1 + pbuilder-modules | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pbuilder b/pbuilder index 63cc7a9..71d6962 100755 --- a/pbuilder +++ b/pbuilder @@ -158,9 +158,15 @@ File extracted to: $BUILDPLACE shift "$0" execute "$@" /usr/lib/pbuilder/pdebuild-internal ;; + --help|help) + . /usr/lib/pbuilder/pbuilder-modules + showhelp + exit 0 + ;; *) . /usr/lib/pbuilder/pbuilder-modules showhelp + exit 1 ;; esac diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 688da07..a9cc3fb 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -189,6 +189,7 @@ while [ -n "$1" ]; do ;; --help) showhelp + exit 0 ;; --override-config) OVERRIDE_APTLINES="yes" diff --git a/pbuilder-modules b/pbuilder-modules index 0e7a77f..d842687 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -80,7 +80,6 @@ pdebuild-specific pbuilder options: For the full documentation see the manual pages pbuilder(8) and pbuilderrc(5). EOF - exit 1 } # Log a message -- cgit v1.2.3