From e4082d4f45fb212d5fa04279b69731f607e288f8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 20 Sep 2017 14:25:33 +0100 Subject: [PATCH] Support multiple configs on the command line --- scripts/deploy.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/deploy.py b/scripts/deploy.py index e7ad3f78..65c3bac6 100755 --- a/scripts/deploy.py +++ b/scripts/deploy.py @@ -165,7 +165,7 @@ if __name__ == "__main__": ) ) parser.add_argument( - "--config", nargs='?', default='./config.json', help=( + "--config", nargs='*', default='./config.json', help=( "Write a symlink at config.json in the extracted tarball to this \ location. (Default: '%(default)s')" ) @@ -182,8 +182,7 @@ if __name__ == "__main__": deployer.packages_path = args.packages_dir deployer.bundles_path = args.bundles_dir deployer.should_clean = args.clean - deployer.config_locations = { - "config.json": args.config, - } + + deployer.config_locations = { os.path.basename(c): c for c in args.config } deployer.deploy(args.tarball, args.extract_path)