-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
man cp
doesn’t document the -R
option
#6223
Comments
I'm not entirely sure what you mean? $ cargo run cp --help
<SNIPPED some unrelated lines>
-n, --no-clobber don't overwrite a file that already exists
-r, --recursive copy directories recursively [short aliases: R]
--strip-trailing-slashes remove any trailing slashes from each SOURCE argument
<SNIPPED more unrelated lines> So it is documented, it clearly says I agree that it could look nicer. That could be improved by switching to uutils-args, because I don't expect that clap will change their format. |
I did not carefully read the longer description in the right column because I’ve never seen what I was looking for only in the description. I’ve only ever seen options listed as syntax in the lefthand column and perhaps mentioned again in their descriptions. But because this does not match GNU’s
this issue might be a bug, and might be related to #2138 and #2150.
Yes, but neither
Is that what allows no more than two |
The formatting as If/when we switch to uutils-args, then we'll be able to fully control the output. I agree that |
I'll add on some of my thoughts.
|
the only implementable portion of uutils#6223 is “to switch `-R` and `-r` to `-r` being the alias because `-R` is the POSIX flag” uutils#6223 (comment) Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
I opened clap-rs/clap#5454 I've reopened this to keep track here as well. We can still close this anytime. |
the only implementable portion of uutils#6223 is “to switch `-R` and `-r` to `-r` being the alias because `-R` is the POSIX flag” uutils#6223 (comment) Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
the only implementable portion of uutils#6223 is “to switch `-R` and `-r` to `-r` being the alias because `-R` is the POSIX flag” uutils#6223 (comment) Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
the only implementable portion of uutils#6223 is “to switch `-R` and `-r` to `-r` being the alias because `-R` is the POSIX flag” uutils#6223 (comment) Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
The manpage for
cp
/ucp
shows the--recursive
and-r
options for recursive copying, but does not mention-R
. All of the following work exactly as expected after runningrm -rf directory elsewhere && mkdir directory
:but the last two lines use
-R
, which is undocumented in the manpage, and is the only POSIX-guaranteed option for recursive copying.The text was updated successfully, but these errors were encountered: