Cleaned up a few strings, nothing to write home about
parent
15b737a5c8
commit
eac4e8785f
6
cli.py
6
cli.py
|
@ -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)
|
Loading…
Reference in New Issue