Source code for cli.LogCommand from utils import config from utils.Log import Log from cli.Command import Command [docs] class LogCommand(Command): def __init__(self, args): super(LogCommand).__init__() if len(args) < 1: raise Exception("No filename defined.") self.file_name = args[0] [docs] def execute(self) -> bool: config.log = Log(self.file_name) return False