[moveonly] Extract HelpRequested to dry up the help options testing

This ensures consistency across interfaces and makes the version handling more clear.
This commit is contained in:
Ben Woosley
2018-03-30 13:47:36 -07:00
parent c564424d98
commit b386970d07
7 changed files with 14 additions and 9 deletions

View File

@@ -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
*