[devscripts] 01/02: chdist: Make short options (-d, -a, -h) work

James McCoy jamessan at debian.org
Sat Jan 25 16:00:30 UTC 2014


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

jamessan pushed a commit to branch master
in repository devscripts.

commit 50428b9e5bc04137697447e1458cee1b037dbd6e
Author: James McCoy <jamessan at debian.org>
Date:   Sat Jan 25 10:18:25 2014 -0500

    chdist: Make short options (-d, -a, -h) work
    
    Closes: #736504
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog  | 4 +++-
 scripts/chdist.pl | 6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 49d6f68..883a5f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,7 +4,9 @@ devscripts (2.14.0) UNRELEASED; urgency=low
   * Add sadt, a simple implementation of DEP-8 test runner (closes: #712095).
 
   [ James McCoy ]
-  * chdist: Ensure error messages end with an EOL.  (Closes: #734307)
+  * chdist:
+    + Ensure error messages end with an EOL.  (Closes: #734307)
+    + Make short options (-d, -a, -h) work.  (Closes: #736504)
   * licensecheck: Add handling for a variation of 3 clause BSD.
   * rc-alert:
     + Ensure the tag/dist description order is stable.  (Closes: #735286)
diff --git a/scripts/chdist.pl b/scripts/chdist.pl
index 5a03d71..f74bbc7 100755
--- a/scripts/chdist.pl
+++ b/scripts/chdist.pl
@@ -172,9 +172,9 @@ my $arch;
 my $datadir = $ENV{'HOME'} . '/.chdist';
 
 GetOptions(
-  "help"       => \$help,
-  "data-dir=s" => \$datadir,
-  "arch=s"     => \$arch,
+  "h|help"       => \$help,
+  "d|data-dir=s" => \$datadir,
+  "a|arch=s"     => \$arch,
   "version"    => \$version,
 ) or usage(1);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list