mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
Enable status printing in CLI mode #8
This commit is contained in:
parent
ebbbf97cdf
commit
00388dcb0a
2 changed files with 17 additions and 12 deletions
|
@ -70,7 +70,7 @@ def main() -> None:
|
|||
parser.add_argument('--hidpi', action='store_true',
|
||||
help='HiDPI mode. Width and height are doubled')
|
||||
parser.add_argument('--log', type=str,
|
||||
help='Python logging level, For example, --log=DEBUG.\n'
|
||||
help='Python logging level, For example, --log=INFO.\n'
|
||||
'Only used for reporting bugs and debugging')
|
||||
# Add signal handler
|
||||
def on_exit(self, signum=None, frame=None):
|
||||
|
@ -177,7 +177,7 @@ def main_cli(args: argparse.Namespace):
|
|||
sys.exit(1)
|
||||
# By instantiating the backend, additional verifications of config
|
||||
# file will be done.
|
||||
backend = Backend()
|
||||
backend = Backend(logger=print)
|
||||
# Get settings
|
||||
with open(CONFIG_PATH, 'r') as f:
|
||||
config = json.load(f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue