comparison hgext/extdiff.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 c45a47bc4114
children a56c1b2bff18 3eb632d9cf42
comparison
equal deleted inserted replaced
11320:e4274f9f97c8 11321:40c06bbf58be
257 return dodiff(ui, repo, program, option, pats, opts) 257 return dodiff(ui, repo, program, option, pats, opts)
258 258
259 cmdtable = { 259 cmdtable = {
260 "extdiff": 260 "extdiff":
261 (extdiff, 261 (extdiff,
262 [('p', 'program', '', _('comparison program to run')), 262 [('p', 'program', '',
263 ('o', 'option', [], _('pass option to comparison program')), 263 _('comparison program to run'), _('CMD')),
264 ('r', 'rev', [], _('revision')), 264 ('o', 'option', [],
265 ('c', 'change', '', _('change made by revision')), 265 _('pass option to comparison program'), _('OPT')),
266 ('r', 'rev', [],
267 _('revision'), _('REV')),
268 ('c', 'change', '',
269 _('change made by revision'), _('REV')),
266 ] + commands.walkopts, 270 ] + commands.walkopts,
267 _('hg extdiff [OPT]... [FILE]...')), 271 _('hg extdiff [OPT]... [FILE]...')),
268 } 272 }
269 273
270 def uisetup(ui): 274 def uisetup(ui):