Cleaned up a few strings, nothing to write home about

pull/11/head
Nicholas Hope 2022-06-15 22:35:41 -04:00
parent 15b737a5c8
commit eac4e8785f
1 changed files with 1 additions and 5 deletions

6
cli.py
View File

@ -11,12 +11,8 @@ import verify
def parseFile(inputFile):
"""Parse, verify, and do the conversion."""
config = {}
config = yaml.safe_load(inputFile)
aliases = bool("aliases" in config)
# See verify.py
config = verify.verifyConfig(config)
if "errors" in config:
@ -52,6 +48,6 @@ if __name__ == "__main__":
help="Parse input file, but don't write anything.")
# positional argument: first non-hyphenated argument is input file
parser.add_argument( 'infile', type=argparse.FileType('r'),
help='File containing YAML to convert. Default: "example.yaml"')
help='File containing YAML to convert.')
args = parser.parse_args()
parseFile(args.infile)