From f1b56311d06aa2371779a34aae0be55e7bb1c1f6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 16 Dec 2019 09:55:50 +0300 Subject: ci: fix a bug in case no positional parameters --- ci/boost/build.py | 6 +++--- ci/boost/build_travis.py | 2 +- ci/build_appveyor.py | 2 +- ci/build_travis.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/boost/build.py b/ci/boost/build.py index 63f8e0f..d535338 100755 --- a/ci/boost/build.py +++ b/ci/boost/build.py @@ -284,16 +284,16 @@ def _parse_args(argv=None): build = subparsers.add_parser('build', help='build Boost libraries') build.add_argument('--platform', metavar='PLATFORM', - nargs='*', dest='platforms', default=(), + nargs='*', dest='platforms', default=[], type=_parse_platform, help='target platform (e.g. x86/x64)') build.add_argument('--configuration', metavar='CONFIGURATION', - nargs='*', dest='configurations', default=(), + nargs='*', dest='configurations', default=[], type=_parse_configuration, help='target configuration (e.g. Debug/Release)') build.add_argument('boost_dir', metavar='DIR', help='Boost root directory') - build.add_argument('b2_args', nargs='*', metavar='B2_ARG', default=(), + build.add_argument('b2_args', nargs='*', metavar='B2_ARG', default=[], help='additional b2 arguments, to be passed verbatim') return parser.parse_args(argv) diff --git a/ci/boost/build_travis.py b/ci/boost/build_travis.py index ec38f7c..7f791e4 100755 --- a/ci/boost/build_travis.py +++ b/ci/boost/build_travis.py @@ -56,7 +56,7 @@ def _parse_args(argv=None): logging.info('Command line arguments: %s', argv) parser = argparse.ArgumentParser() - parser.add_argument('b2_args', nargs='*', metavar='B2_ARG', default=(), + parser.add_argument('b2_args', nargs='*', metavar='B2_ARG', default=[], help='additional b2 arguments, to be passed verbatim') return parser.parse_args(argv) diff --git a/ci/build_appveyor.py b/ci/build_appveyor.py index 66c2e31..38d0d7e 100755 --- a/ci/build_appveyor.py +++ b/ci/build_appveyor.py @@ -118,7 +118,7 @@ def _parse_args(argv=None): parser = argparse.ArgumentParser(description='Build a CMake project on AppVeyor') parser.add_argument('--install', metavar='DIR', dest='install_dir', help='install directory') - parser.add_argument('cmake_args', nargs='*', metavar='CMAKE_ARG', default=(), + parser.add_argument('cmake_args', nargs='*', metavar='CMAKE_ARG', default=[], help='additional CMake arguments, to be passed verbatim') return parser.parse_args(argv) diff --git a/ci/build_travis.py b/ci/build_travis.py index 4b3a3eb..25dbe70 100755 --- a/ci/build_travis.py +++ b/ci/build_travis.py @@ -55,7 +55,7 @@ def _parse_args(argv=None): parser = argparse.ArgumentParser(description='Build a CMake project on Travis') parser.add_argument('--install', metavar='DIR', dest='install_dir', help='install directory') - parser.add_argument('cmake_args', nargs='*', metavar='CMAKE_ARG', default=(), + parser.add_argument('cmake_args', nargs='*', metavar='CMAKE_ARG', default=[], help='additional CMake arguments, to be passed verbatim') return parser.parse_args(argv) -- cgit v1.2.3