Add ability to test whether tty verbose or debug is enabled.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user