Add ability to test whether tty verbose or debug is enabled.

This commit is contained in:
Todd Gamblin 2015-05-29 17:18:33 -07:00
parent 5676cb0dd1
commit ceecd2ce41

View file

@ -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