help: explain in `hg help flags` that unambiguous prefixes are allowed
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 03 Jun 2020 22:07:26 -0700
changeset 44933 33ef8841da62
parent 44932 03ba7de6a8b9
child 44934 b2e5ec0c596b
help: explain in `hg help flags` that unambiguous prefixes are allowed 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. Differential Revision: https://phab.mercurial-scm.org/D8607
mercurial/helptext/flags.txt
--- a/mercurial/helptext/flags.txt	Wed Jun 03 11:28:57 2020 -0400
+++ b/mercurial/helptext/flags.txt	Wed Jun 03 22:07:26 2020 -0700
@@ -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::