swap the verbose/debug order so that verbose can't overwrite a debug parameter
@@ -47,6 +47,14 @@ def define_parser():
gui_cli(subparsers)
# https://stackoverflow.com/a/20663028/3912576
+ parser.add_argument(
+ "-v",
+ "--verbose",
+ help="Be verbose",
+ action="store_const",
+ dest="loglevel",
+ const=logging.INFO,
+ )
parser.add_argument(
"-d",
"--debug",
@@ -56,14 +64,6 @@ def define_parser():
const=logging.DEBUG,
default=logging.WARNING,
)
- parser.add_argument(
- "-v",
- "--verbose",
- help="Be verbose",
- action="store_const",
- dest="loglevel",
- const=logging.INFO,
- )
return parser
