Mercurial > hg-stable
changeset 44974:33ef8841da62
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 03 Jun 2020 22:07:26 -0700 |
parents | 03ba7de6a8b9 |
children | b2e5ec0c596b |
files | mercurial/helptext/flags.txt |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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::