Mercurial > public > mercurial-scm > hg
diff hgext/rebase.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 | 7fa3968004c1 |
children | 59bd20451ab6 |
line wrap: on
line diff
--- a/hgext/rebase.py Wed Jun 09 12:45:48 2010 +0100 +++ b/hgext/rebase.py Sun Jun 06 17:25:00 2010 +0900 @@ -538,10 +538,14 @@ "rebase": (rebase, [ - ('s', 'source', '', _('rebase from the specified changeset')), - ('b', 'base', '', _('rebase from the base of the specified changeset ' - '(up to greatest common ancestor of base and dest)')), - ('d', 'dest', '', _('rebase onto the specified changeset')), + ('s', 'source', '', + _('rebase from the specified changeset'), _('REV')), + ('b', 'base', '', + _('rebase from the base of the specified changeset ' + '(up to greatest common ancestor of base and dest)'), + _('REV')), + ('d', 'dest', '', + _('rebase onto the specified changeset'), _('REV')), ('', 'collapse', False, _('collapse the rebased changesets')), ('', 'keep', False, _('keep original changesets')), ('', 'keepbranches', False, _('keep original branch names')),