From f3353bbb054f162ae3c88159cdc84ea504065649 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Sat, 11 Nov 2023 12:49:43 +0100 Subject: [PATCH] ENH: tighten parsing of meson install arguments --- mesonpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py index ad1ec5564..5795136df 100644 --- a/mesonpy/__init__.py +++ b/mesonpy/__init__.py @@ -795,7 +795,7 @@ def _manifest(self) -> DefaultDict[str, List[Tuple[pathlib.Path, str]]]: install_plan = self._info('intro-install_plan') # Parse the 'meson install' args to extract --tags and --skip-subprojects - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser(add_help=False) parser.add_argument('--tags') parser.add_argument('--skip-subprojects', nargs='?', const='*', default='') args, _ = parser.parse_known_args(self._meson_args['install'])