From b386970d0750e368d6adc5d0c010ead329b5c7c1 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Fri, 30 Mar 2018 13:47:36 -0700 Subject: [moveonly] Extract HelpRequested to dry up the help options testing This ensures consistency across interfaces and makes the version handling more clear. --- src/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 4c473c9354..17881ff3b6 100644 --- a/src/util.h +++ b/src/util.h @@ -313,6 +313,11 @@ private: extern ArgsManager gArgs; +/** + * @return true if help has been requested via a command-line arg + */ +bool HelpRequested(const ArgsManager& args); + /** * Format a string to be used as group of options in help messages * -- cgit v1.2.3