blob: c9438c01f218b1cc147eb8bdd79a19475f5b2f85 [file] [log] [blame]
#!/usr/bin/python3
# Copyright 2019 IBM Corp.
from argparse import ArgumentParser
import yaml
if __name__ == "__main__":
# A simple program to ensure proper indents of input yaml file
parser = ArgumentParser(description="YAML formatter")
parser.add_argument(
"-f", "--file", dest="file_yaml", help="yaml file to format"
)
args = parser.parse_args()
print(
yaml.dump(
yaml.load(open(args.file_yaml), Loader=yaml.FullLoader), indent=4
)
)