From 5807ec7bc875d678f2e9502259d62d83b858a854 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 29 Mar 2020 14:24:17 +0000 Subject: project: add os.py --- project/cmake/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'project/cmake') diff --git a/project/cmake/build.py b/project/cmake/build.py index b15badd..5355c0b 100644 --- a/project/cmake/build.py +++ b/project/cmake/build.py @@ -151,9 +151,12 @@ def _parse_args(argv=None): parser.add_argument('--install', metavar='DIR', dest='install_dir', type=project.utils.normalize_path, help='install directory') + + configuration_options = '/'.join(map(str, Configuration.all())) parser.add_argument('--configuration', metavar='CONFIG', type=Configuration.parse, default=Configuration.DEBUG, - help=f'build configuration ({"/".join(map(str, Configuration))})') + help=f'build configuration ({configuration_options})') + parser.add_argument('src_dir', metavar='DIR', type=project.utils.normalize_path, help='source directory') -- cgit v1.2.3