From addca871adde5c04657635576874be3effe06487 Mon Sep 17 00:00:00 2001 From: David Baker <dave@matrix.org> Date: Wed, 17 Apr 2019 18:31:36 +0100 Subject: [PATCH] Fix default for --include arg nargs options are arrays and we assume it's an array later, so it would iterate over each char of the string if left as the default --- scripts/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.py b/scripts/deploy.py index e8fd9aa4..33aa0af0 100755 --- a/scripts/deploy.py +++ b/scripts/deploy.py @@ -166,7 +166,7 @@ if __name__ == "__main__": ) ) parser.add_argument( - "--include", nargs='*', default='./config*.json', help=( + "--include", nargs='*', default=['./config*.json'], help=( "Symlink these files into the root of the deployed tarball. \ Useful for config files and home pages. Supports glob syntax. \ (Default: '%(default)s')"