I ended up implementing a command line utility that parses arguments using getopt_long. To wrap things up, I need to implement the -h or --help switch, which will print a list of arguments, as well as descriptions and default values.
Is there any GNU infrastructure I can use for this? If not, I understand that I can do it manually. What is usually considered the best approach?
source share