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

Add --help CLI argument #56

Open
sohang3112 opened this issue Oct 20, 2023 · 2 comments
Open

Add --help CLI argument #56

sohang3112 opened this issue Oct 20, 2023 · 2 comments
Assignees

Comments

@sohang3112
Copy link
Contributor

Add command line help by identifying flags --help or -h. All CLI tools have these arguments, so it's a bit strange that 2048 doesn't.

@mevdschee
Copy link
Owner

True and some have -v or --version too :-)

@mevdschee mevdschee self-assigned this Oct 20, 2023
@Rudxain
Copy link
Contributor

Rudxain commented Oct 21, 2023

All CLI tools have these arguments, so it's a bit strange that 2048 doesn't.

I'm unsure if that's necessary here, as the README is helpful, and the game is simple and intuitive. But it's still "good practice" in terms of design.

pedantic correction: It should be "parameters" rather than "arguments", in this case. Params are named arg values. But since help doesn't "store" any args, it should be referred-to as a "flag" or "switch"

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

3 participants