Skip to content
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

Warn the end user when they enter potentially dangerous option values #27

Open
nemec opened this issue May 14, 2016 · 0 comments
Open

Comments

@nemec
Copy link
Owner

nemec commented May 14, 2016

There may be some scenarios where you want to warn the end user if they enter a dangerous value that they may not have indended, the canonical example being rm -rf / bin/someprog and putting an extra space in there.

Today the rm program uses an extra parameter (--no-preserve-root) to allow that value, but it also terminates the program immediately with an error. This feature will offer devs the option to choose "warn", "error", or custom behavior. To get the behavior used by rm today, you would have to implement your own post-parse validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant