-
-
Notifications
You must be signed in to change notification settings - Fork 226
Various improvements to check.sh #256
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
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.
Very very nice, thanks so much!
It's great that someone actually capable in bash had look at this 🙂
-h | --help | help) | ||
echo "$HELP_TEXT" | ||
exit 0 |
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.
Probably -h|--help
should be enough, no? Just to streamline usage a bit.
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.
Plain help
without any hyphens is a hidden feature, super simple to add and might save someone a few seconds if they try it as a guess. Documenting it would just clutter help output, since we'd also need to specify that it's mutually exclusive with other non-option commands.
Which reminds me, let me point at --help
in the "Unrecognized argument" error message.
7334a7c
to
3e7582a
Compare
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.
Looks mostly good to me.
Once the color is reverted, feel free to bors r+
the PR as soon as you're ready.
Expect a bors deprecation message 😉
- allow spaces and other funny characters in GODOT4_BIN value - add -h and help as aliases for --help - remove toolchain variable; add RUSTUP_TOOLCHAIN example - properly escape logged commands and arguments if they contain spaces Non-functional improvements: - pass shellcheck - stop using sh'isms like [ ]
3e7582a
to
9209da6
Compare
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
GODOT4_BIN
value-h
andhelp
as aliases for--help
RUSTUP_TOOLCHAIN
example (take note @lilizoey, I think you were using this one)Non-functional improvements:
[ ]