Patchwork D8607: help: explain in `hg help flags` that unambiguous prefixes are allowed

login
register
mail settings
Submitter phabricator
Date June 4, 2020, 6:50 a.m.
Message ID <differential-rev-PHID-DREV-vyur7g7tkypvmykymxuu-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46461/
State Superseded
Headers show

Comments

phabricator - June 4, 2020, 6:50 a.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  I used `hg commit --amend` as an example because that's the most
  frequently used flag I could think of that doesn't yet have a short
  form.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/helptext/flags.txt

CHANGE DETAILS




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

Patch

diff --git a/mercurial/helptext/flags.txt b/mercurial/helptext/flags.txt
--- a/mercurial/helptext/flags.txt
+++ b/mercurial/helptext/flags.txt
@@ -10,7 +10,9 @@ 
 
 Every flag has at least a long name, such as --repository. Some flags may also
 have a short one-letter name, such as the equivalent -R. Using the short or long
-name is equivalent and has the same effect.
+name is equivalent and has the same effect. The long name may be abbreviated to
+any unambiguous prefix. For example, :hg:`commit --amend` can be abbreviated
+to :hg:`commit --am`.
 
 Flags that have a short name can also be bundled together - for instance, to
 specify both --edit (short -e) and --interactive (short -i), one could use::