[Request] [+ ] D8607: help: explain in `hg help flags` that unambiguous prefixes are allowed

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Jun 4 06:50:53 UTC 2020


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

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::



To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200604/8dd1748f/attachment.html>


More information about the Mercurial-patches mailing list