help: show value requirement and multiple occurrence of options stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sun, 06 Jun 2010 17:25:00 +0900
branchstable
changeset 767 0492a5acf652
parent 766 1b077329846e
child 768 36f51ccd65d3
child 770 25fcb8ed70c4
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. [ original upstream message ]
hgkw/keyword.py
--- a/hgkw/keyword.py	Wed Jun 09 22:50:30 2010 +0100
+++ b/hgkw/keyword.py	Sun Jun 06 17:25:00 2010 +0900
@@ -559,7 +559,8 @@
     'kwdemo':
         (demo,
          [('d', 'default', None, _('show default keyword template maps')),
-          ('f', 'rcfile', '', _('read maps from rcfile'))],
+          ('f', 'rcfile', '',
+           _('read maps from rcfile'), _('FILE'))],
          _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...')),
     'kwexpand': (expand, commands.walkopts,
                  _('hg kwexpand [OPTION]... [FILE]...')),