[PATCH 0 of 1] Display type of each command options in online help document.

FUJIWARA Katsunori fujiwara at ascade.co.jp
Tue Dec 30 03:10:52 CST 2008


I offten see `mercurial/command.py' to confirm type of options: 
value requirement and multi-value allowance.

So, I wrote patch to display type of each command options in online
help document.

Current online help displays:

 -f --force      force push
 -r --rev        a specific revision up to which you would like to push
 -e --ssh        specify ssh command to use

This patch changes it to:

 -f --force     [F] force push
 -r --rev       [M] a specific revision up to which you would like to push
 -e --ssh       [V] specify ssh command to use

Additional marks mean:

  - F: flag option
  - V: value required option
  - M: value required option(multiple values are allowed)

Is there anybody who would like this patch, other than me ?

And would you have any comments on appearance of type information ?
For example, I uses F(lag)/S(ingle)/M(ulti) as type marks at first.  I
also want to know whether bracket-ing("[x]") and location of mark seem
to be good.



More information about the Mercurial-devel mailing list