comparison hgext/graphlog.py @ 11321:40c06bbf58be

help: show value requirement and multiple occurrence of options this helps users to know what kind of option is: - no value is required(flag option) - value is required - value is required, and multiple occurrences are allowed each kinds are shown as below: -f --force force push -e --ssh CMD specify ssh command to use -b --branch BRANCH [+] a specific branch you would like to push if one or more 3rd type options are shown, explanation for '[+]' mark is also shown as footnote.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sun, 06 Jun 2010 17:25:00 +0900
parents 3d0591a66118
children 25430ff23cfa
comparison
equal deleted inserted replaced
11320:e4274f9f97c8 11321:40c06bbf58be
368 entry[1].append(('G', 'graph', None, _("show the revision DAG"))) 368 entry[1].append(('G', 'graph', None, _("show the revision DAG")))
369 369
370 cmdtable = { 370 cmdtable = {
371 "glog": 371 "glog":
372 (graphlog, 372 (graphlog,
373 [('l', 'limit', '', _('limit number of changes displayed')), 373 [('l', 'limit', '',
374 _('limit number of changes displayed'), _('NUM')),
374 ('p', 'patch', False, _('show patch')), 375 ('p', 'patch', False, _('show patch')),
375 ('r', 'rev', [], _('show the specified revision or range')), 376 ('r', 'rev', [],
377 _('show the specified revision or range'), _('REV')),
376 ] + templateopts, 378 ] + templateopts,
377 _('hg glog [OPTION]... [FILE]')), 379 _('hg glog [OPTION]... [FILE]')),
378 } 380 }