Let's say I provide the following long option arguments structure:
static const struct option long_opts[] = {
{ "version", no_argument, NULL, 'v' },
{ "help", no_argument, NULL, 'h' },
{ NULL, 0, NULL, 0 }
};
How can I specify an additional option, named '--myoption', but without the short form? So I would be able to call only:
./binary --myoption
I need this because I ran out of letters.
If you don't put that option into
shortopts
then no short option for that parameter will be used. E.g.: