add -v/--verbose option and reduce error verbosity

(#12)
This commit is contained in:
Mike Fährmann
2017-04-18 11:38:48 +02:00
parent 0770de0ea1
commit 5af35ea150
3 changed files with 17 additions and 0 deletions

View File

@@ -136,6 +136,11 @@ def build_parser():
"--list-modules", dest="list_modules", action="store_true",
help="Print a list of available modules/supported sites",
)
parser.add_argument(
"-v", "--verbose", dest="loglevel", action="store_const",
const=logging.DEBUG, default=logging.INFO,
help="Print various debugging information",
)
parser.add_argument(
"--version", action="version", version=__version__,
help="Print program version and exit"