Hi guys. I was wondering what the most common way to check for options, declared with '-' at the command line, is in C. For example: prog -a filename would run the program prog with the -a option. I assume it involves scanning with getopt. Thanks.
>>5
No, it also supports --long-args and prints usage message, and usage for options is in the same struct as options themselves, and it also does pretty text-wrapping while printing usage.