Infile group parameters are now optional
This commit is contained in:
1 parent
f48a6db932
commit
f04e8e5aa5
1 file changed
+1
-1
+1
-1
@@ -12,7 +12,7 @@ import argparse
|
||||
|
||||
argsparser = argparse.ArgumentParser(description='Jinja Template Helper')
|
||||
|
||||
infilegroup = argsparser.add_mutually_exclusive_group(required=True)
|
||||
infilegroup = argsparser.add_mutually_exclusive_group(required=False)
|
||||
infilegroup.add_argument('--yaml', dest='yaml_file', type=str, required=False,
|
||||
help='YAML file path')
|
||||
infilegroup.add_argument('--json', dest='json_file', type=str, required=False,
|
||||
|
||||
Reference in new issue
Block a user