Fixed parser requirements bug

This commit is contained in:
codingo
2019-01-06 13:27:55 +10:00
parent 35c13f3180
commit 84ce118729

View File

@@ -113,20 +113,17 @@ class InputParser(object):
type=lambda x: InputHelper.readable_file(parser, x) type=lambda x: InputHelper.readable_file(parser, x)
) )
commands = parser.add_mutually_exclusive_group(required=True) parser.add_argument(
commands.add_argument(
'-o', dest='output', '-o', dest='output',
help='Specify an output folder variable that can be used in commands as $output' help='Specify an output folder variable that can be used in commands as $output'
) )
commands = parser.add_mutually_exclusive_group(required=True) parser.add_argument(
commands.add_argument(
'-p', dest='port', '-p', dest='port',
help='Specify a port variable that can be used in commands as $port' help='Specify a port variable that can be used in commands as $port'
) )
commands = parser.add_mutually_exclusive_group(required=True) parser.add_argument(
commands.add_argument(
'-rp', dest='realport', '-rp', dest='realport',
help='Specify a real port variable that can be used in commands as $realport' help='Specify a real port variable that can be used in commands as $realport'
) )