From 8404389a31ae8b737a016d70fda344890c0cd0dd Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 1 Mar 2014 09:36:48 +0800 Subject: [PATCH] Rename no-publish-release to publish-release. --- script/upload.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/upload.py b/script/upload.py index 6d10cfd..8f54905 100755 --- a/script/upload.py +++ b/script/upload.py @@ -51,7 +51,7 @@ def main(): release_id = create_or_get_release_draft(github, args.version) upload_atom_shell(github, release_id, os.path.join(DIST_DIR, DIST_NAME)) upload_atom_shell(github, release_id, os.path.join(DIST_DIR, SYMBOLS_NAME)) - if not args.no_publish_release: + if args.publish_release: publish_release(github, release_id) # Upload node's headers to S3. @@ -63,9 +63,9 @@ def parse_args(): parser = argparse.ArgumentParser(description='upload distribution file') parser.add_argument('-v', '--version', help='Specify the version', default=ATOM_SHELL_VRESION) - parser.add_argument('-n', '--no-publish-release', - help='Do not publish the release', - action='store_false') + parser.add_argument('-p', '--publish-release', + help='Publish the release', + action='store_true') return parser.parse_args() -- 2.7.4