This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=4aed98dc8c0c58dbe87c5b40d3d200ce231aeac3

commit 4aed98dc8c0c58dbe87c5b40d3d200ce231aeac3 (HEAD -> master)
Author: Guillem Jover <[email protected]>
AuthorDate: Tue May 5 03:48:01 2020 +0200

    dpkg-maintscript-helper: Add -?, --help and --version to --help output
---
 debian/changelog                   | 1 +
 scripts/dpkg-maintscript-helper.sh | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 294d440b1..454ef8f49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,7 @@ dpkg (1.20.1) UNRELEASED; urgency=medium
       just the first one.
     - man: Use .TP macros instead of hand-crafted formatting.
     - man: Fix font markup for some variable and literal strings.
+    - dpkg-maintscript-helper: Add -?, --help and --version to --help output.
   * Build system:
     - Handle .git being a plain file when getting the dpkg tree version.
     - Add debian/changelog as a Changes file to the CPAN distribution.
diff --git a/scripts/dpkg-maintscript-helper.sh 
b/scripts/dpkg-maintscript-helper.sh
index a113a938e..bba20d20a 100755
--- a/scripts/dpkg-maintscript-helper.sh
+++ b/scripts/dpkg-maintscript-helper.sh
@@ -632,14 +632,17 @@ Commands:
        Replace a directory with a symlink. Must be called in preinst,
        postinst and postrm.
   help
-       Display this usage information.
+  -?, --help
+       Show this help message.
+      --version
+       Show the version.
 END
 }
 
 badusage() {
        echo "$FMT_PROG: ${COLOR_ERROR}error${COLOR_RESET}: $1" >&2
        echo >&2
-       echo "Use '$PROGNAME help' for program usage information." >&2
+       echo "Use '$PROGNAME --help' for program usage information." >&2
        exit 1
 }
 

-- 
Dpkg.Org's dpkg

Reply via email to