2048.c icon indicating copy to clipboard operation
2048.c copied to clipboard

Add `--help` CLI argument

Open sohang3112 opened this issue 2 years ago • 3 comments

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.

sohang3112 avatar Oct 20 '23 02:10 sohang3112

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

mevdschee avatar Oct 20 '23 06:10 mevdschee

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"

Rudxain avatar Oct 21 '23 02:10 Rudxain

@mevdschee Should I raise a PR to add --help and --version flags?

sohang3112 avatar Jul 23 '24 19:07 sohang3112