summaryrefslogtreecommitdiff
path: root/scripts/dpkg-architecture.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-05-22 20:02:12 +0200
committerGuillem Jover <guillem@debian.org>2012-06-30 06:35:24 +0200
commit951542fdc27e4753dde1edeb3292f136aec355e4 (patch)
tree22fef5406fd1e9760b5a1a46d74360b86e713720 /scripts/dpkg-architecture.pl
parent9308127a8fcedc2325f804670c9bac4dee6516a7 (diff)
downloaddpkg-951542fdc27e4753dde1edeb3292f136aec355e4.tar.gz
Change all programs to accept -? instead of -h for help output
This switch frees the -h option to be used in the distant future for other purposes, it also uses a character that does not have any other obvious meaning for help output, and which is pretty safe to be used blindly by the user in the same way as --help.
Diffstat (limited to 'scripts/dpkg-architecture.pl')
-rwxr-xr-xscripts/dpkg-architecture.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dpkg-architecture.pl b/scripts/dpkg-architecture.pl
index 186adb2b0..c4929ace9 100755
--- a/scripts/dpkg-architecture.pl
+++ b/scripts/dpkg-architecture.pl
@@ -4,7 +4,7 @@
#
# Copyright © 1999-2001 Marcus Brinkmann <brinkmd@debian.org>
# Copyright © 2004-2005 Scott James Remnant <scott@netsplit.com>,
-# Copyright © 2006-2011 Guillem Jover <guillem@debian.org>
+# Copyright © 2006-2012 Guillem Jover <guillem@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -60,7 +60,7 @@ sub usage {
-s print command to set environment variables.
-u print command to unset environment variables.
-c <command> set environment and run the command in it.
- --help show this help message.
+ -?, --help show this help message.
--version show the version.
"), $progname;
}
@@ -155,7 +155,7 @@ while (@ARGV) {
} elsif (m/^-L$/) {
list_arches();
exit unless @ARGV;
- } elsif (m/^-(h|-help)$/) {
+ } elsif (m/^-(\?|-help)$/) {
usage();
exit 0;
} elsif (m/^--version$/) {