-
Notifications
You must be signed in to change notification settings - Fork 46
fix(cli/parse): extract dir before name #230
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
fix(cli/parse): extract dir before name #230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good, however this error message is terribely spammy:
Error: file name x repeated under different import directories: dir2 and dir1
USAGE
ipfs add <path>... - Add a file or directory to IPFS.
ipfs add [--recursive | -r] [--dereference-args] [--stdin-name=<stdin-name>] [--hidden | -H] [--ignore=<ignore>]... [--ignore-rules-path=<ignore-rules-path>] [--quiet | -q] [--quieter | -Q] [--silent]
[--progress | -p] [--trickle | -t] [--only-hash | -n] [--wrap-with-directory | -w] [--chunker=<chunker> | -s] [--pin=false] [--raw-leaves] [--nocopy] [--fscache] [--cid-version=<cid-version>]
[--hash=<hash>] [--inline] [--inline-limit=<inline-limit>] [--] <path>...
Adds the content of <path> to IPFS. Use -r to add directories (recursively).
For more information about each command, use:
'ipfs add <subcmd> --help'
Dumping the help isn't helpfull and dilute the signal.
I would expect the same thing as other APIs:
$ ./ipfs pin add Qmfoo
Error: invalid path "Qmfoo": selected encoding not supported
@Jorropo I don't understand exactly what's your requested change here. The above is the behavior for any command error, e.g., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM then
Syncing to commit protocol/.github@2aab7c0.