diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-29 14:24:17 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-29 14:24:17 +0000 |
commit | 5807ec7bc875d678f2e9502259d62d83b858a854 (patch) | |
tree | 0e6e1f92777230d94c627ef9208de24d84b4558a /project/cmake/build.py | |
parent | clang-format.py: fix timestamps in logs (diff) | |
download | cmake-common-5807ec7bc875d678f2e9502259d62d83b858a854.tar.gz cmake-common-5807ec7bc875d678f2e9502259d62d83b858a854.zip |
project: add os.py
Diffstat (limited to '')
-rw-r--r-- | project/cmake/build.py | 5 |
1 files changed, 4 insertions, 1 deletions
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') |