mat2: Fix the --no-sandbox argument
The --no-sandbox argument was parsed incorrectly, meaning no sandbox was used when it was absent and the sandbox being used when it was present.
This commit is contained in:
parent
bbd5b2817c
commit
e6564509e1
4
mat2
4
mat2
@ -57,8 +57,8 @@ def create_arg_parser() -> argparse.ArgumentParser:
|
|||||||
', '.join(p.value for p in UnknownMemberPolicy))
|
', '.join(p.value for p in UnknownMemberPolicy))
|
||||||
parser.add_argument('--inplace', action='store_true',
|
parser.add_argument('--inplace', action='store_true',
|
||||||
help='clean in place, without backup')
|
help='clean in place, without backup')
|
||||||
parser.add_argument('--no-sandbox', dest='sandbox', action='store_true',
|
parser.add_argument('--no-sandbox', dest='sandbox', action='store_false',
|
||||||
default=False, help='Disable bubblewrap\'s sandboxing')
|
default=True, help='Disable bubblewrap\'s sandboxing')
|
||||||
|
|
||||||
excl_group = parser.add_mutually_exclusive_group()
|
excl_group = parser.add_mutually_exclusive_group()
|
||||||
excl_group.add_argument('files', nargs='*', help='the files to process',
|
excl_group.add_argument('files', nargs='*', help='the files to process',
|
||||||
|
Loading…
Reference in New Issue
Block a user