aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/boost/build.py3
-rw-r--r--project/boost/download.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/project/boost/build.py b/project/boost/build.py
index fd73b6e..bd4fd6b 100644
--- a/project/boost/build.py
+++ b/project/boost/build.py
@@ -37,6 +37,7 @@ from project.os import on_linux_like
from project.platform import Platform
from project.toolset import Toolset, ToolsetVersion
from project.utils import normalize_path, setup_logging
+import project.version
DEFAULT_PLATFORMS = (Platform.AUTO,)
@@ -150,6 +151,8 @@ def _parse_args(argv=None):
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
+ project.version.add_to_arg_parser(parser)
+
platform_options = '/'.join(map(str, Platform.all()))
configuration_options = '/'.join(map(str, Configuration.all()))
# These are used to put the built libraries into proper stage/
diff --git a/project/boost/download.py b/project/boost/download.py
index 3f1366e..b5bf684 100644
--- a/project/boost/download.py
+++ b/project/boost/download.py
@@ -27,6 +27,7 @@ import urllib.request
from project.boost.archive import Archive, PermanentStorage, TemporaryStorage
from project.boost.version import Version
from project.utils import normalize_path, mkdir_parent, retry, setup_logging
+import project.version
class Download:
@@ -127,6 +128,8 @@ def _parse_args(argv=None):
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
+ project.version.add_to_arg_parser(parser)
+
parser.add_argument('--unpack', metavar='DIR', dest='unpack_dir',
type=normalize_path,
help='directory to unpack the archive to')