def process_args()

in gce_rescue/config.py [0:0]


def process_args():
  """ Print usage options. """
  parser = argparse.ArgumentParser(description=f'GCE Rescue v{VERSION} - \
    Set/Reset GCE instances to boot in rescue mode.')
  parser.add_argument('-p', '--project',
                      help='The project-id that has the instance.')
  parser.add_argument('-z', '--zone', help='Zone where the instance \
    is created.',
                      required=True)
  parser.add_argument('-n', '--name', help='Instance name.', required=True)
  parser.add_argument('-d', '--debug', action='store_true',
                      help='Print to the log file in debug leve')
  parser.add_argument('-f', '--force', action='store_true',
                      help='Don\'t ask for confirmation.')
  parser.add_argument('--skip-snapshot', action='store_true',
                      help='Skip backing up the disk using a snapshot.')
  return parser