Skip to content

cp -R option is confusing #1

@disq

Description

@disq

cp command's -R option works on local files (as source) only. When downloading, if there's a wildcard it's always recursive so there's no real need for an -R option. Maybe add a dummy/no-op -R option to "from-remote" cp command?

Currently having the -R in an s3-sourced cp command fails with the confusing error message "File param resembles s3 object", as it parses the command as having a local source. (since -R is not an option for remote sourced files)

Another fix would be to reverse the parsing order so that arguments get parsed first, options later. Since s3 urls are expected to always start with s3:// scheme, it would select the correct command and fail with an "no such option" error message which is much clear.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions