We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I guess this is a design choice, but I would like the opposite, is there a way?
I would like:
Rationale: any UNIX/POSIX command-line utility exits with non-zero in case of user calling it incorrectly.
Example with cp on macOS:
cp
> cp a b ; echo $status cp: a: No such file or directory 1
> cp ; echo $status usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory 64
> cp -x; echo $status cp: illegal option -- x usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory 64
What are my options with opts ? Would you consider a PR ? Thanks!
opts
The text was updated successfully, but these errors were encountered:
Hello @jpillora friendly ping :-)
Sorry, something went wrong.
Oh yes, should indeed exit with 1, PR 😁 ?
c11a232
thanks!
No branches or pull requests
Hello,
I guess this is a design choice, but I would like the opposite, is there a way?
I would like:
Rationale: any UNIX/POSIX command-line utility exits with non-zero in case of user calling it incorrectly.
Example with
cp
on macOS:What are my options with
opts
? Would you consider a PR ? Thanks!The text was updated successfully, but these errors were encountered: