Skip to content

Commit 43bb0d7

Browse files
dnicolodirgommers
authored andcommitted
ENH: tighten parsing of meson install arguments
1 parent cdf3dea commit 43bb0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def _manifest(self) -> DefaultDict[str, List[Tuple[pathlib.Path, str]]]:
787787
install_plan = self._info('intro-install_plan')
788788

789789
# Parse the 'meson install' args to extract --tags and --skip-subprojects
790-
parser = argparse.ArgumentParser()
790+
parser = argparse.ArgumentParser(add_help=False)
791791
parser.add_argument('--tags')
792792
parser.add_argument('--skip-subprojects', nargs='?', const='*', default='')
793793
args, _ = parser.parse_known_args(self._meson_args['install'])

0 commit comments

Comments
 (0)