Revert "qvm-template: Fix compatibility with Python 3.6"
This reverts commit 199996e7b8
.
This commit is contained in:
parent
199996e7b8
commit
f8032b0f5a
@ -58,7 +58,7 @@ def parser_gen() -> argparse.ArgumentParser:
|
|||||||
formatter = argparse.ArgumentDefaultsHelpFormatter
|
formatter = argparse.ArgumentDefaultsHelpFormatter
|
||||||
parser_main = argparse.ArgumentParser(description='Qubes Template Manager',
|
parser_main = argparse.ArgumentParser(description='Qubes Template Manager',
|
||||||
formatter_class=formatter)
|
formatter_class=formatter)
|
||||||
subparsers = parser_main.add_subparsers(dest='operation',
|
subparsers = parser_main.add_subparsers(dest='operation', required=True,
|
||||||
description='Command to run.')
|
description='Command to run.')
|
||||||
|
|
||||||
def parser_add_command(cmd, help_str):
|
def parser_add_command(cmd, help_str):
|
||||||
@ -1363,9 +1363,6 @@ def main(args: typing.Optional[typing.Sequence[str]] = None,
|
|||||||
"""
|
"""
|
||||||
p_args = parser.parse_args(args)
|
p_args = parser.parse_args(args)
|
||||||
|
|
||||||
if not p_args.operation:
|
|
||||||
parser.error('An operation needs to be specified.')
|
|
||||||
|
|
||||||
# If the user specified other repo files...
|
# If the user specified other repo files...
|
||||||
if len(p_args.repo_files) > 1:
|
if len(p_args.repo_files) > 1:
|
||||||
# ...remove the default entry
|
# ...remove the default entry
|
||||||
|
Loading…
Reference in New Issue
Block a user