From a99999cc04c2e7d79bb841fd954c84e985ed3b88 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 6 Feb 2019 13:57:52 -0500 Subject: util: Add SetupHelpOptions() --- src/util/system.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util/system.cpp') diff --git a/src/util/system.cpp b/src/util/system.cpp index bb9fcab59e..27ed24d012 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -635,6 +635,12 @@ bool HelpRequested(const ArgsManager& args) return args.IsArgSet("-?") || args.IsArgSet("-h") || args.IsArgSet("-help") || args.IsArgSet("-help-debug"); } +void SetupHelpOptions(ArgsManager& args) +{ + args.AddArg("-?", "Print this help message and exit", false, OptionsCategory::OPTIONS); + args.AddHiddenArgs({"-h", "-help"}); +} + static const int screenWidth = 79; static const int optIndent = 2; static const int msgIndent = 7; -- cgit v1.2.3