Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Add version argument
Browse files Browse the repository at this point in the history
[Issue(s) #52]
  • Loading branch information
sopel committed Feb 11, 2014
1 parent a88758a commit 7947a34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions botocross/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ def build_filter_params(filter_args):
return params

def build_common_parser():
from botocross import __version__
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument("-v", "--verbose", action='store_true') # REVIEW: drop in favor of a log formatter?!
parser.add_argument("--access_key_id", dest='aws_access_key_id', help="Your AWS Access Key ID")
parser.add_argument("--secret_access_key", dest='aws_secret_access_key', help="Your AWS Secret Access Key")
parser.add_argument("-l", "--log", dest='log_level', default='WARNING',
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
help="The logging level to use. [default: WARNING]")
parser.add_argument('--version', action='version', version='%(prog)s ' + __version__)
return parser

def build_region_parser():
Expand Down

0 comments on commit 7947a34

Please sign in to comment.