-
Notifications
You must be signed in to change notification settings - Fork 87
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
core: tools: scripts: red-pill: Add option to select user #2273
core: tools: scripts: red-pill: Add option to select user #2273
Conversation
c853b16
to
b03a609
Compare
esac | ||
done | ||
shift $((OPTIND -1)) | ||
|
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.
# Don't simply ignore additional arguments | |
if [ $# -gt 0 ]; then | |
echo "Invalid Argument: $1" 1>&2 | |
usage | |
fi | |
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.
I'm not sure if I follow, what is the use case for this ?
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.
redpill myusername
would print the usage, instead of ignoring the argument. It's pretty common for people to miss the argument identifier (say, -u
) before the argument.
It would also print the usage when redpill -u myusername and something else
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.
Oh, nice!
Signed-off-by: Patrick José Pereira <[email protected]>
b03a609
to
977041f
Compare
Relevant to #1073 |
No description provided.