Skip to content

Commit

Permalink
Add alias '-s' for quiet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Jan 28, 2022
1 parent d35d43d commit 52d299d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ARRCON/Help.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ms> --wait <ms> 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'
Expand Down
2 changes: 1 addition & 1 deletion ARRCON/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<opt::Option, opt::Flag>('q', "quiet");
Global.quiet = args.check_any<opt::Option, opt::Flag>('q', 's', "quiet");
// Argument: [-h|--help]
if (args.check_any<opt::Flag, opt::Option>('h', "help")) {
std::cout << Help(myName) << std::endl;
Expand Down

0 comments on commit 52d299d

Please sign in to comment.