longopts
Longopts refers to the array of option descriptors used with the GNU C library function getopt_long to parse long-form command-line options. The convention uses a statically defined array of struct option, often named longopts, to describe each supported option such as --help or --version beyond the traditional short options like -h. The struct and its conventions are defined in getopt.h.
Each element is a struct option, defined in getopt.h, with four fields: name (the long option string
How it works: If flag is non-NULL, getopt_long assigns *flag = val and returns 0 when the option
Portability: getopt_long is a GNU extension; not all platforms support it. For portability, some projects implement
Naming: longopts is a conventional name for the array; the exact identifier can be chosen by the