diff hgext/shelve.py @ 38714:abcf500d527c

shelve: improve help text for --patch and --stat It's not currently obvious why "hg shelve -p" fails, since -p doesn't take an argument. Differential Revision: https://phab.mercurial-scm.org/D3949
author Danny Hooper <hooper@google.com>
date Fri, 13 Jul 2018 13:48:56 -0700
parents 9b077e5fa8ba
children 905b66681004
line wrap: on
line diff
--- a/hgext/shelve.py	Thu Jul 12 18:46:10 2018 +0200
+++ b/hgext/shelve.py	Fri Jul 13 13:48:56 2018 -0700
@@ -1011,11 +1011,14 @@
           ('n', 'name', '',
            _('use the given name for the shelved commit'), _('NAME')),
           ('p', 'patch', None,
-           _('show patch')),
+           _('output patches for changes (provide the names of the shelved '
+             'changes as positional arguments)')),
           ('i', 'interactive', None,
            _('interactive mode, only works while creating a shelve')),
           ('', 'stat', None,
-           _('output diffstat-style summary of changes'))] + cmdutil.walkopts,
+           _('output diffstat-style summary of changes (provide the names of '
+             'the shelved changes as positional arguments)')
+           )] + cmdutil.walkopts,
          _('hg shelve [OPTION]... [FILE]...'))
 def shelvecmd(ui, repo, *pats, **opts):
     '''save and set aside changes from the working directory