code: def parse_options(metadata):
      
      parser = argparse.ArgumentParser(description='%(prog)s usage:',
                                       prog=__prog__)
      setoption(parser, metadata=metadata)
      return parser
docs: Parse argument options.