aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-11-27 18:30:19 +0100
committerPapoteur <papoteur@mageia.org>2020-11-27 18:30:19 +0100
commit467dda4bd88130b839971d0ddfb1ad68635939f4 (patch)
tree13c2d4f1de43e84e6e08c6721216226eed7a7e3a
parent1be4efc5afccd8c4b03ad8c1301f2709d43ed4a1 (diff)
downloadisodumper-467dda4bd88130b839971d0ddfb1ad68635939f4.tar
isodumper-467dda4bd88130b839971d0ddfb1ad68635939f4.tar.gz
isodumper-467dda4bd88130b839971d0ddfb1ad68635939f4.tar.bz2
isodumper-467dda4bd88130b839971d0ddfb1ad68635939f4.tar.xz
isodumper-467dda4bd88130b839971d0ddfb1ad68635939f4.zip
Add debug option also in launcher
-rwxr-xr-xisodumper6
1 files changed, 5 insertions, 1 deletions
diff --git a/isodumper b/isodumper
index 2b0f33b..27cf967 100755
--- a/isodumper
+++ b/isodumper
@@ -14,10 +14,14 @@ class ParseCLI(args.AppArgs):
yui.YUILog.setLogFileName("/dev/null")
parser = ParseCLI('isodumper')
+parser.parser.add_argument('--debug', help=_('allow debug information'), action='store_true')
if parser.args.version:
print(version.RELEASE)
else:
- app = isodumper.IsoDumper()
+ if parser.args.debug:
+ app = isodumper.IsoDumper(debug=True)
+ 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