comparison hgext/keyword.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 e4274f9f97c8
children 5ea28187707e
comparison
equal deleted inserted replaced
11320:e4274f9f97c8 11321:40c06bbf58be
557 557
558 cmdtable = { 558 cmdtable = {
559 'kwdemo': 559 'kwdemo':
560 (demo, 560 (demo,
561 [('d', 'default', None, _('show default keyword template maps')), 561 [('d', 'default', None, _('show default keyword template maps')),
562 ('f', 'rcfile', '', _('read maps from rcfile'))], 562 ('f', 'rcfile', '',
563 _('read maps from rcfile'), _('FILE'))],
563 _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...')), 564 _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...')),
564 'kwexpand': (expand, commands.walkopts, 565 'kwexpand': (expand, commands.walkopts,
565 _('hg kwexpand [OPTION]... [FILE]...')), 566 _('hg kwexpand [OPTION]... [FILE]...')),
566 'kwfiles': 567 'kwfiles':
567 (files, 568 (files,