From 225e0894692bce0c58d1b0d658235fc8fd8d289d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Fri, 17 Nov 2017 10:41:01 +0100 Subject: [PATCH] Fix -A argument --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 54f40da6..b8dd6900 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -53,7 +53,7 @@ int main(int argc, char *argv[]) cmd_parser.addPositionalArgument("filename", QObject::tr("Filename to open.")); QCommandLineOption anal_option({"A", "anal"}, - QObject::tr("Automatically start analysis. Needs filename to be specified. May be a value between 0 and 4."), + QObject::tr("Automatically open file and optionally start analysis. Needs filename to be specified. May be a value between 0 and 2: 0 = no analysis, 1 = aaa, 2 = aaaa (experimental)"), QObject::tr("level")); cmd_parser.addOption(anal_option); @@ -82,9 +82,9 @@ int main(int argc, char *argv[]) { anal_level = cmd_parser.value(anal_option).toInt(&anal_level_specified); - if (!anal_level_specified || anal_level < 0 || anal_level > 4) + if (!anal_level_specified || anal_level < 0 || anal_level > 2) { - printf("%s\n", QObject::tr("Invalid Analysis Level. May be a value between 0 and 4.").toLocal8Bit().constData()); + printf("%s\n", QObject::tr("Invalid Analysis Level. May be a value between 0 and 2.").toLocal8Bit().constData()); return 1; } }