def main():
parser = argparse.ArgumentParser(
description=('Validate the config or inventory yaml file for '
'reference architectures.'),
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('--file',
dest='file',
required=True,
help='The path to the config or inventory file.')
# Handle error cases before attempting to parse
# a command off the command line
if len(sys.argv) == 1:
parser.print_help()
sys.exit(1)
args = parser.parse_args()
validate(args.file)
validate_config.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录