derp.. why did I make a separate parse_args()
This commit is contained in:
parent
bf5b9e70bb
commit
4cc8008cfc
1 changed files with 6 additions and 9 deletions
|
@ -114,6 +114,12 @@ def parse_args():
|
||||||
parser.add_argument('-p', '--publish-release',
|
parser.add_argument('-p', '--publish-release',
|
||||||
help='Publish the release',
|
help='Publish the release',
|
||||||
action='store_true')
|
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()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
|
@ -263,15 +269,6 @@ def auth_token():
|
||||||
assert token, message
|
assert token, message
|
||||||
return token
|
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__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue