Improved documentation regarding default behavior without CLI arguments.

This commit is contained in:
Martin-Eckleben
2020-09-05 16:32:59 +02:00
committed by borgmanJeremy
parent 924b11d975
commit 944469cd39
2 changed files with 8 additions and 2 deletions

View File

@@ -340,6 +340,7 @@ CommandLineParser::printHelp(QStringList args, const Node* node)
{
args.removeLast(); // remove the help, it's always the last
QString helpText;
// add usage info
QString argName = node->argument.name();
if (argName.isEmpty()) {
@@ -350,6 +351,10 @@ CommandLineParser::printHelp(QStringList args, const Node* node)
.arg(args.join(QStringLiteral(" ")))
.arg(argName)
.arg(argText);
// short section about default behavior
helpText += QStringLiteral("Per default runs Flameshot in the background and adds a tray icon for configuration.\n\n");
// add command options and subarguments
QList<CommandArgument> subArgs;
for (const Node& n : node->subNodes)