1
0
mirror of synced 2024-11-21 16:54:23 +01:00

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:
Romain Vigier 2023-11-13 13:06:38 +01:00
parent bbd5b2817c
commit e6564509e1
No known key found for this signature in database
GPG Key ID: EB8152444509C709

4
mat2
View File

@ -57,8 +57,8 @@ def create_arg_parser() -> argparse.ArgumentParser:
', '.join(p.value for p in UnknownMemberPolicy))
parser.add_argument('--inplace', action='store_true',
help='clean in place, without backup')
parser.add_argument('--no-sandbox', dest='sandbox', action='store_true',
default=False, help='Disable bubblewrap\'s sandboxing')
parser.add_argument('--no-sandbox', dest='sandbox', action='store_false',
default=True, help='Disable bubblewrap\'s sandboxing')
excl_group = parser.add_mutually_exclusive_group()
excl_group.add_argument('files', nargs='*', help='the files to process',