Files
Giacomo Vercesi 9d5b6d1f34 revng cli: migrate legacy scripts to _commands
Move the remaining commands in the `scripts` to be used by the `revng`
command line driver.
2023-05-11 10:02:46 +02:00

19 lines
333 B
Python

#
# This file is distributed under the MIT License. See LICENSE.md for details.
#
import sys
verbose = True
def set_verbose(verb: bool):
global verbose
verbose = verb
def log(message):
# TODO: implement properly using python logging and setting the loglevel
if verbose:
sys.stderr.write(message + "\n")