Mercurial > hg
comparison hgext/fetch.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 | d1908cb95a82 |
children | b885f28fa4fa |
comparison
equal
deleted
inserted
replaced
11320:e4274f9f97c8 | 11321:40c06bbf58be |
---|---|
136 release(lock, wlock) | 136 release(lock, wlock) |
137 | 137 |
138 cmdtable = { | 138 cmdtable = { |
139 'fetch': | 139 'fetch': |
140 (fetch, | 140 (fetch, |
141 [('r', 'rev', [], _('a specific revision you would like to pull')), | 141 [('r', 'rev', [], |
142 _('a specific revision you would like to pull'), _('REV')), | |
142 ('e', 'edit', None, _('edit commit message')), | 143 ('e', 'edit', None, _('edit commit message')), |
143 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), | 144 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), |
144 ('', 'switch-parent', None, _('switch parents when merging')), | 145 ('', 'switch-parent', None, _('switch parents when merging')), |
145 ] + commands.commitopts + commands.commitopts2 + commands.remoteopts, | 146 ] + commands.commitopts + commands.commitopts2 + commands.remoteopts, |
146 _('hg fetch [SOURCE]')), | 147 _('hg fetch [SOURCE]')), |