From 52d299d8bb22746b29c86d52837a31c48a5ca773 Mon Sep 17 00:00:00 2001 From: radj307 Date: Fri, 28 Jan 2022 02:12:47 -0500 Subject: [PATCH] Add alias '-s' for quiet mode --- ARRCON/Help.hpp | 2 +- ARRCON/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ARRCON/Help.hpp b/ARRCON/Help.hpp index 41175e8..00871d7 100644 --- a/ARRCON/Help.hpp +++ b/ARRCON/Help.hpp @@ -38,7 +38,7 @@ struct Help { << " -h --help Show the help display, then exit." << '\n' << " -v --version Print the current version number, then exit." << '\n' << " -t -i --interactive Always use interactive terminal mode. Any one-off commands are executed first." << '\n' - << " -q --quiet Don't print server response packets." << '\n' + << " -q -s --quiet Silent mode, prevents most console output from being printed." << '\n' << " -w --wait Time in milliseconds to wait between each command in commandline mode." << '\n' << " -n --no-color Disable colorized console output." << '\n' << " -Q --no-prompt Disables the prompt in interactive mode, and command echo in commandline mode." << '\n' diff --git a/ARRCON/main.cpp b/ARRCON/main.cpp index cd1db9e..7f2437c 100644 --- a/ARRCON/main.cpp +++ b/ARRCON/main.cpp @@ -267,7 +267,7 @@ int main(const int argc, char** argv) const config::Locator cfg_path(myDir, myNameNoExt); // Argument: [-q|--quiet] - Global.quiet = args.check_any('q', "quiet"); + Global.quiet = args.check_any('q', 's', "quiet"); // Argument: [-h|--help] if (args.check_any('h', "help")) { std::cout << Help(myName) << std::endl;