code: def genargs() -> ArgumentParser:
      
      parser = ArgumentParser()
      parser.add_argument("spec", help="JSG specification - can be file name, URI or string")
      parser.add_argument("-o", "--outfile", help="Output python file - if omitted, python is not saved")
      parser.add_argument("-p", "--print", help="Print python file to stdout")
      parser.add_argument("-id", "--inputdir", help="Input directory with JSON files")
      parser.add_argument("-i", "--json", help="URL, file name or json text", nargs='*')
      return parser
docs: Create a command line parser
  
      :return: parser