dealing with commandline args
TL;DR … parsing cmdline opts is pretty tedious with C
– and there is no really idiomatic way..
standard library
getoptfrom<unistd.h>for simple onesargpfrom<argp.h>for complex ones- DIY: don’t
reads:
TL;DR … parsing cmdline opts is pretty tedious with C
– and there is no really idiomatic way..
standard library
getopt from <unistd.h> for simple onesargp from <argp.h> for complex onesreads: