##// END OF EJS Templates
Added options -h/--help.
Thomas Arendsen Hein -
r1048:7fbb440b default
parent child Browse files
Show More
@@ -1523,6 +1523,7 b' globalopts = ['
1523 1523 ('', 'time', None, 'time how long the command takes'),
1524 1524 ('', 'profile', None, 'profile'),
1525 1525 ('', 'version', None, 'output version information and exit'),
1526 ('h', 'help', None, 'display help and exit'),
1526 1527 ]
1527 1528
1528 1529 norepo = "clone init version help debugconfig debugdata" + \
@@ -1632,7 +1633,10 b' def dispatch(args):'
1632 1633
1633 1634 try:
1634 1635 try:
1635 if options['version']:
1636 if options['help']:
1637 help_(u, cmd)
1638 sys.exit(0)
1639 elif options['version']:
1636 1640 show_version(u)
1637 1641 sys.exit(0)
1638 1642 elif not cmd:
@@ -112,7 +112,6 b' list of commands (use "hg help -v" to sh'
112 112 update update or merge working directory
113 113 verify verify the integrity of the repository
114 114 version output version and copyright information
115 hg add: option -h not recognized
116 115 hg add [OPTION]... [FILE]...
117 116
118 117 add the specified files on the next commit
General Comments 0
You need to be logged in to leave comments. Login now