def main()

in marketplace/deployer_util/extract_schema_key.py [0:0]


def main():
  parser = ArgumentParser(description=_PROG_HELP)
  parser.add_argument(
      '--schema_file',
      help='Path to the schema file',
      default='/data/schema.yaml')
  parser.add_argument(
      '--type',
      help='The x-google-marketplace type for which '
      'configuration keys will be printed.\n'
      'Example: NAME',
      required=True)
  args = parser.parse_args()

  schema = config_helper.Schema.load_yaml_file(args.schema_file)
  sys.stdout.write('\n'.join(
      [k for k, v in schema.properties.items() if v.xtype == args.type]))