diff options
| author | Romain Vigier | 2023-11-13 13:06:38 +0100 |
|---|---|---|
| committer | Romain Vigier | 2023-11-13 13:06:38 +0100 |
| commit | e6564509e19e5b3bd5819fd9dca8f63d297cae74 (patch) | |
| tree | 4d6fe5188c932e03dee5b70911e44e229483e167 | |
| parent | bbd5b2817c9d64013e2f5ed670aca8d4738bb484 (diff) | |
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.
| -rwxr-xr-x | mat2 | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -57,8 +57,8 @@ def create_arg_parser() -> argparse.ArgumentParser: | |||
| 57 | ', '.join(p.value for p in UnknownMemberPolicy)) | 57 | ', '.join(p.value for p in UnknownMemberPolicy)) |
| 58 | parser.add_argument('--inplace', action='store_true', | 58 | parser.add_argument('--inplace', action='store_true', |
| 59 | help='clean in place, without backup') | 59 | help='clean in place, without backup') |
| 60 | parser.add_argument('--no-sandbox', dest='sandbox', action='store_true', | 60 | parser.add_argument('--no-sandbox', dest='sandbox', action='store_false', |
| 61 | default=False, help='Disable bubblewrap\'s sandboxing') | 61 | default=True, help='Disable bubblewrap\'s sandboxing') |
| 62 | 62 | ||
| 63 | excl_group = parser.add_mutually_exclusive_group() | 63 | excl_group = parser.add_mutually_exclusive_group() |
| 64 | excl_group.add_argument('files', nargs='*', help='the files to process', | 64 | excl_group.add_argument('files', nargs='*', help='the files to process', |
