From abc7d6b84b5e1c794b72b029cf33f5f32a8d60b2 Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Wed, 16 Mar 2016 09:26:03 +0100 Subject: [PATCH] added missing global section --- lib/ApplicationFeatures/ConsoleFeature.cpp | 7 +++++-- lib/ApplicationFeatures/LanguageFeature.cpp | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ApplicationFeatures/ConsoleFeature.cpp b/lib/ApplicationFeatures/ConsoleFeature.cpp index 4577802073..95454cf394 100644 --- a/lib/ApplicationFeatures/ConsoleFeature.cpp +++ b/lib/ApplicationFeatures/ConsoleFeature.cpp @@ -86,12 +86,15 @@ ConsoleFeature::ConsoleFeature(application_features::ApplicationServer* server) void ConsoleFeature::collectOptions(std::shared_ptr options) { LOG_TOPIC(TRACE, Logger::STARTUP) << name() << "::collectOptions"; - options->addSection(Section("console", "Configure the console", - "console options", false, false)); + options->addSection( + Section("", "Global configuration", "global options", false, false)); options->addOption("--quiet", "silent startup", new BooleanParameter(&_quiet, false)); + options->addSection(Section("console", "Configure the console", + "console options", false, false)); + options->addOption("--console.colors", "enable color support", new BooleanParameter(&_colors)); diff --git a/lib/ApplicationFeatures/LanguageFeature.cpp b/lib/ApplicationFeatures/LanguageFeature.cpp index bd0776e5f9..39f9812df9 100644 --- a/lib/ApplicationFeatures/LanguageFeature.cpp +++ b/lib/ApplicationFeatures/LanguageFeature.cpp @@ -43,6 +43,9 @@ void LanguageFeature::collectOptions( std::shared_ptr options) { LOG_TOPIC(TRACE, Logger::STARTUP) << name() << "::collectOptions"; + options->addSection( + Section("", "Global configuration", "global options", false, false)); + options->addHiddenOption("--default-language", "ISO-639 language code", new StringParameter(&_language)); }