Closed andy5995 closed 6 years ago
Hello ! I'm interested in working on this issue. Could you please elaborate the issue though ? I am fairly new to this.
Hi @linton-dawson
If you build the program, and give it the --help
option, it will spit out the message that it's an invalid option. When --help
is given, it should show the usage.
It should do the same thing as when -h
is given.
One way to do it would be to use getopt.h
This is an example of a program getting command line options when the getopt.h header is included
That single line would mean that --help
would be accepted, or -h
https://github.com/theimpossibleastronaut/modemu2k/blob/3e0ab8e3200718c556b5af7647e7d81c284dcf37/src/cmdarg.c#L48