code: def main():
      
      args = parser.parse_args()
      try:
          function = args.func
      except AttributeError:
          parser.print_usage()
          parser.exit(1)
      function(vars(args))
docs: Parse the args and call whatever function was selected