8000 Add help messages to the build script by flysand7 · Pull Request #47 · RealNeGate/Cuik · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add help messages to the build script #47

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flysand7
Copy link
Contributor

This might be just me, but figuring out how to run this script has cost me 10 minutes of my time and some light lua debugging. This script has a pretty poor user experience. In order to improve it I've added the help message that is displayed whenever the build script is invoked with at least one of the commonly-used options for getting help:

-h, -help, or --help

Whenever the build script is executed without either -x64 or -a64 option I've also improved on the output of the script, telling what exactly needs to be typed, and also directing the user to the real help message. Since running the build script without any options and seeing what happens is the first thing anyone looking at the build script will do I see this as a good way of directing users to some kind of documentation as soon as possible.

Minor thing, but I've also fixed the error code of the script when running without the non-optional argument for arch. I think it's more fitting to use the error code 2, which is commonly used for CLI-related errors.

This might be just me, but figuring out how to run this script has cost
me 10 minutes of my time and some light lua debugging. This script has
a pretty poor user experience. In order to improve it I've added the
help message that is displayed whenever the build script is invoked
with at least one of the commonly-used options for getting help:

    -h, -help, or --help

Whenever the build script is executed without either -x64 or -a64
option I've also improved on the output of the script, telling what
exactly needs to be typed, and also directing the user to the real help
message. Since running the build script without any options and seeing
what happens is the first thing anyone looking at the build script will
do I see this as a good way of directing users to some kind of
documentation as soon as possible.

Minor thing, but I've also fixed the error code of the script when
running without the non-optional argument for arch. I think it's more
fitting to use the error code 2, which is commonly used for CLI-related
errors.

Signed-off-by: Sunagatov Denis <thebumboni@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0