# HG changeset patch # User kreijack@inwind.REMOVEME.it # Date 1123331251 -3600 # Node ID 859e7ea530bd6ba48f3b54bc76daecf4c1f7581a # Parent 8fb4887730637b402513809c332f69c388b74b97 'hg help -v' shows global options diff -r 8fb488773063 -r 859e7ea530bd mercurial/commands.py --- a/mercurial/commands.py Sat Aug 06 12:05:09 2005 +0100 +++ b/mercurial/commands.py Sat Aug 06 13:27:31 2005 +0100 @@ -314,6 +314,20 @@ 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')