cli_tools.py 452 B

123456789101112131415161718192021
  1. import argparse
  2. parser = argparse.ArgumentParser(
  3. prog='digital-ocean-ss3-client',
  4. description="Command line script to upload files to digital ocean spaces"
  5. )
  6. parser.add_argument('-v', '--version', action='version', version='%(prog)s v1.0')
  7. parser.add_argument(
  8. '-d','--dir',
  9. help="the root directory to upload.",
  10. dest='dir',
  11. required=True
  12. )
  13. parser.add_argument(
  14. '-b','--bucket',
  15. help="default='backup', if left blank ",
  16. dest='bucket'
  17. )