diff options
Diffstat (limited to 'isodumper')
-rwxr-xr-x | isodumper | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -1,9 +1,22 @@ #!/usr/bin/python3 from isodumper import isodumper +import manatools.args as args +from isodumper import version import yui -app = isodumper.IsoDumper() -app.run() -# next line seems to be a workaround to prevent the qt-app from crashing -# see https://github.com/libyui/libyui-qt/issues/41 -yui.YUILoader.deleteUI() +class ParseCLI(args.AppArgs): + def __init(self, command): + super().__init__(command) + +# Suppress YUI log from console (mga#26681) +yui.YUILog.setLogFileName("/dev/null") + +parser = ParseCLI('isodumper') +if parser.args.version: + print(version.RELEASE) +else: + app = isodumper.IsoDumper() + app.run() + # next line seems to be a workaround to prevent the qt-app from crashing + # see https://github.com/libyui/libyui-qt/issues/41 + yui.YUILoader.deleteUI() |