help: update command synopsis to clarify "cp --forget" only takes destinations
authorYuya Nishihara <yuya@tcha.org>
Sat, 17 Oct 2020 21:57:21 +0900
changeset 45793 4db5671d57d9
parent 45792 1703a7f9d5b8
child 45794 330c258fe7ca
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.
mercurial/commands.py
--- 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):