D1270: help: adding a topic on flags

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Oct 31 05:17:36 UTC 2017


martinvonz added a comment.


  We're in code freeze for approximately two more days, so this will have to wait until ~Thursday. Still, thanks for the patch. I'm happy to include something like this. Things that struck me as missing:
  
  1. Long vs short form (that e.g. "--verbose" and "-v" are equivalent if the refer to the same flag, which they do)
  2. Non-list, non-boolean flags that take arguments, such as "--rev", and that "--rev=tip", "--rev tip", "-r=tip", "-r tip", and "-rtip" are equivalent
  3. Short flags can be combined: "-pvr tip" is valid
  4. Later flags override earlier flags
  
  We don't necessarily have to include all that in the first patch.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1270

To: rdamazio, #hg-reviewers
Cc: martinvonz, mercurial-devel


More information about the Mercurial-devel mailing list