getopt: add "help" function to return help string