Add --debug option to replace TOOT_DEBUG env

pull/31/head
Ivan Habunek 2017-08-26 15:12:32 +02:00
rodzic 3b13c49142
commit e4c3a85045
2 zmienionych plików z 14 dodań i 2 usunięć

Wyświetl plik

@ -1,10 +1,16 @@
Changelog
---------
**0.14.0 (TBA)**
* Add `--debug` option to enable debug logging instead of using the `TOOT_DEBUG`
environment variable.
**0.13.0 (2017-08-26)**
* Allow passing `--instance` and `--email` to login command
* Add `login_browser` command for proper two factor authentication through the browser (#19, #23)
* Add `login_browser` command for proper two factor authentication through the
browser (#19, #23)
**0.12.0 (2017-05-08)**

Wyświetl plik

@ -31,6 +31,11 @@ common_args = [
"help": "don't use ANSI colors in output",
"action": 'store_true',
"default": False,
}),
(["--debug"], {
"help": "show debug log in console",
"action": 'store_true',
"default": False,
})
]
@ -279,7 +284,8 @@ def run_command(app, user, name, args):
def main():
if os.getenv('TOOT_DEBUG'):
# Enable debug log if --debug is in args
if "--debug" in sys.argv:
logging.basicConfig(level=logging.DEBUG)
# If something is piped in, append it to commandline arguments