Add ability to test whether tty verbose or debug is enabled.
This commit is contained in:
parent
5676cb0dd1
commit
ceecd2ce41
1 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,14 @@
|
|||
_verbose = False
|
||||
indent = " "
|
||||
|
||||
def is_verbose():
|
||||
return _verbose
|
||||
|
||||
|
||||
def is_debug():
|
||||
return _debug
|
||||
|
||||
|
||||
def set_debug(flag):
|
||||
global _debug
|
||||
_debug = flag
|
||||
|
|
Loading…
Reference in a new issue