changeset 45793:4db5671d57d9

help: update command synopsis to clarify "cp --forget" only takes destinations I'm a bit confused while reading 03690079d7dd, which says "a destination file", but the code loops over matched files.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 Oct 2020 21:57:21 +0900
parents 1703a7f9d5b8
children 330c258fe7ca
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Oct 13 14:16:21 2020 -0400
+++ b/mercurial/commands.py	Sat Oct 17 21:57:21 2020 +0900
@@ -2351,7 +2351,7 @@
     ]
     + walkopts
     + dryrunopts,
-    _(b'[OPTION]... SOURCE... DEST'),
+    _(b'[OPTION]... (SOURCE... DEST | --forget DEST...)'),
     helpcategory=command.CATEGORY_FILE_CONTENTS,
 )
 def copy(ui, repo, *pats, **opts):