This PR switches the main to use getopt_long for parsing the flags given on the command line. Using getopt(3) or getopt_long(3) should be preferred over manually parsing, as they already cover a lot of edge cases.
While here I also couldn't resist the temptation to add a single letter version for the long flags and mention the flags in the manpage too.
This PR switches the main to use getopt_long for parsing the flags given on the command line. Using getopt(3) or getopt_long(3) should be preferred over manually parsing, as they already cover a lot of edge cases.
While here I also couldn't resist the temptation to add a single letter version for the long flags and mention the flags in the manpage too.