# HG changeset patch # User kreijack@inwind.REMOVEME.it # Date 2005-08-06 12:27:31 # Node ID 859e7ea530bd6ba48f3b54bc76daecf4c1f7581a # Parent 8fb4887730637b402513809c332f69c388b74b97 'hg help -v' shows global options diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -314,6 +314,20 @@ def help_(ui, cmd=None): show_version(ui) ui.write('\n') if ui.verbose: + ui.write("global options:\n\n") + for s, l, d, c in globalopts: + opt = ' ' + if s: + opt = opt + '-' + s + ' ' + if l: + opt = opt + '--' + l + ' ' + if d: + opt = opt + '(' + str(d) + ')' + ui.write(opt, "\n") + if c: + ui.write(' %s\n' % c) + ui.write("\n") + ui.write('hg commands:\n\n') else: ui.write('basic hg commands (use "hg help -v" for more):\n\n')