From a68ce67b2a00b63b4ceb1f0152efb3da2851ce11 Mon Sep 17 00:00:00 2001 From: Itay Cohen Date: Sun, 17 May 2020 22:34:38 +0300 Subject: [PATCH] Use "analysis" for -A option (#2203) --- docs/source/user-docs/command-line.rst | 2 +- src/CutterApplication.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/user-docs/command-line.rst b/docs/source/user-docs/command-line.rst index aaa2de88..f7421ed8 100644 --- a/docs/source/user-docs/command-line.rst +++ b/docs/source/user-docs/command-line.rst @@ -26,7 +26,7 @@ Options Displays version information. -.. option:: -A, --anal +.. option:: -A, --analysis When opening a file automatically perform analysis at given level. Requires :option:`` to be specified. Following levels are available: diff --git a/src/CutterApplication.cpp b/src/CutterApplication.cpp index 550c2dfe..150858c2 100644 --- a/src/CutterApplication.cpp +++ b/src/CutterApplication.cpp @@ -303,7 +303,7 @@ bool CutterApplication::parseCommandLineOptions() cmd_parser.addVersionOption(); cmd_parser.addPositionalArgument("filename", QObject::tr("Filename to open.")); - QCommandLineOption analOption({"A", "anal"}, + QCommandLineOption analOption({"A", "analysis"}, 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)"),