self.view.luckyDrop(luck) except ValueError as err: self.view.error(f"Incorrect index '{n}'") if __name__ == "__main__": controller = QuoteTerminalController() #while True: #controller.run() config_data = { "thedirectcommand": { "argument_value_properties": {"q":[1], "l":[1]}, "overloading": [ { "local": ["q"], "func": controller.showQuote }, { "local": ["l"], "func": controller.showLuck } ] } } args = sys.argv[1:] parse(args, config_data)
import sys from .view import config_data from paraivari.parser import parse parse(sys.argv[1:], config_data)
def run(args): return parse(args, config_data)