The GNU C library provides a function that you can use in C and C++
programs to parse the make this job somewhat easier (although still a
bit annoying).This function, getopt_long, understands both short and
long options.
header file to include <getopt.h>