From 4cc8008cfc913daff7a63ef53f01b7dd26ff517a Mon Sep 17 00:00:00 2001 From: Vanessa Yuen Date: Thu, 2 Nov 2017 16:42:09 +0800 Subject: [PATCH] derp.. why did I make a separate parse_args() --- script/upload.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/script/upload.py b/script/upload.py index 1d852536587..75be4edb99c 100755 --- a/script/upload.py +++ b/script/upload.py @@ -114,6 +114,12 @@ def parse_args(): parser.add_argument('-p', '--publish-release', help='Publish the release', action='store_true') + parser.add_argument('-s', '--upload_to_s3', + help='Upload assets to s3 bucket', + dest='upload_to_s3', + action='store_true', + default=False, + required=False) return parser.parse_args() @@ -263,15 +269,6 @@ def auth_token(): assert token, message return token -def parse_args(): - parser = argparse.ArgumentParser(description='Upload Electron Assets') - parser.add_argument('-s', '--upload_to_s3', - help='Upload assets to s3 bucket', - dest='upload_to_s3', - action='store_true', - default=False, - required=False) - return parser.parse_args() if __name__ == '__main__': import sys