[XM] Reenable the '-h' option, disabled in changeset:11572.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-09-27 13:58:46 +01:00
1 parent 81fe851d00
commit 32b51f8b72
1 file changed
+8 -7
+8 -7
View File
@@ -1423,13 +1423,14 @@ def main(argv=sys.argv):
if len(argv) < 2:
usage()
# intercept --help and output our own help
if '--help' in argv[1:]:
if '--help' == argv[1]:
longHelp()
else:
usage(argv[1])
sys.exit(0)
# intercept --help(-h) and output our own help
for help in ['--help', '-h']:
if help in argv[1:]:
if help == argv[1]:
longHelp()
else:
usage(argv[1])
sys.exit(0)
cmd = xm_lookup_cmd(argv[1])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.