Permalink
Browse files

add more verbose help to s3 script

  • Loading branch information...
jameshadfield committed Oct 26, 2018
1 parent 7583b98 commit d5f6042f7e56447b2fc2763c03a0af9353a55df1
Showing with 4 additions and 1 deletion.
  1. +4 −1 scripts/s3.py
@@ -254,7 +254,10 @@ def sync(source_bucket_name, destination_bucket_name, prefixes=None, dryrun=Fals
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(
description="Upload files to a (nextstrain) S3 bucket and perform cloudfront invalidation",
epilog="P.S. run \"s3.py <cmd> -h\" to see the help specific to that command"
)
parser.add_argument("--verbose", "-v", action="store_const", dest="loglevel", const=logging.INFO, help="Enable verbose logging")
parser.add_argument("--debug", "-d", action="store_const", dest="loglevel", const=logging.DEBUG, help="Enable debugging logging")
parser.add_argument("--dryrun", "-n", action="store_true", help="Perform a dryrun without uploading or downloading any files")

0 comments on commit d5f6042

Please sign in to comment.