Ben Elliston wrote:
> The first time I ran gnupload, I used -h and got an error. ;-) This
> patch adds -h as an alias for --help.

Normally it's Jim who reviews patches to gnupload. He hasn't reacted
in 3 days. But the patch is obviously OK. So I am putting it in -
and documenting the option as well.


2018-12-01  Bruno Haible  <br...@clisp.org>

        gnupload: Document short options.
        * build-aux/gnupload (usage): Document the short options.

diff --git a/build-aux/gnupload b/build-aux/gnupload
index 64f9218..801cf75 100755
--- a/build-aux/gnupload
+++ b/build-aux/gnupload
@@ -77,10 +77,10 @@ Options:
   --user NAME              sign with key NAME
   --replace                allow replacements of existing files
   --symlink-regex[=EXPR]   use sed script EXPR to compute symbolic link names
-  --dry-run                do nothing, show what would have been done
+  -n, --dry-run            do nothing, show what would have been done
                            (including the constructed directive file)
   --version                output version information and exit
-  --help                   print this help text and exit
+  -h, --help               print this help text and exit
 
 If --symlink-regex is given without EXPR, then the link target name
 is created by replacing the version information with '-latest', e.g.:
@@ -194,7 +194,7 @@ while test -n "$1"; do
     --symlink)
       collect_var=symlink_files
       ;;
-    --dry-run|-n)
+    -n | --dry-run)
       dry_run=:
       ;;
     --version)


Reply via email to