aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'project/boost/build.py')
-rw-r--r--project/boost/build.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/project/boost/build.py b/project/boost/build.py
index cb3688c..a192585 100644
--- a/project/boost/build.py
+++ b/project/boost/build.py
@@ -80,7 +80,9 @@ class BuildParameters:
@staticmethod
def from_cmd_args(args):
- return BuildParameters(**vars(args))
+ args = vars(args)
+ args.pop('help_toolsets', None)
+ return BuildParameters(**args)
def enum_b2_args(self):
with self._create_build_dir() as build_dir:
@@ -140,6 +142,10 @@ def _parse_args(argv=None):
if argv is None:
argv = sys.argv[1:]
+ if '--help-toolsets' in argv:
+ sys.stdout.write(ToolsetVersion.help_toolsets())
+ sys.exit(0)
+
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
@@ -171,6 +177,8 @@ def _parse_args(argv=None):
parser.add_argument('--toolset', metavar='TOOLSET', dest='toolset_version',
type=ToolsetVersion.parse, default=DEFAULT_TOOLSET_VERSION,
help=f'toolset to use ({ToolsetVersion.usage()})')
+ parser.add_argument('--help-toolsets', action='store_true',
+ help='show detailed info about supported toolsets')
parser.add_argument('--build', metavar='DIR', dest='build_dir',
type=normalize_path,