Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.cpp
Show First 20 Lines • Show All 709 Lines • ▼ Show 20 Lines | for (const auto &arg_map : m_available_args) { | ||||
usage += HelpMessageOpt(name, arg.second.m_help_text); | usage += HelpMessageOpt(name, arg.second.m_help_text); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return usage; | return usage; | ||||
} | } | ||||
bool HelpRequested(const ArgsManager &args) { | bool HelpRequested(const ArgsManager &args) { | ||||
return args.IsArgSet("-?") || args.IsArgSet("-h") || args.IsArgSet("-help"); | return args.IsArgSet("-?") || args.IsArgSet("-h") || | ||||
args.IsArgSet("-help") || args.IsArgSet("-help-debug"); | |||||
} | } | ||||
static const int screenWidth = 79; | static const int screenWidth = 79; | ||||
static const int optIndent = 2; | static const int optIndent = 2; | ||||
static const int msgIndent = 7; | static const int msgIndent = 7; | ||||
std::string HelpMessageGroup(const std::string &message) { | std::string HelpMessageGroup(const std::string &message) { | ||||
return std::string(message) + std::string("\n\n"); | return std::string(message) + std::string("\n\n"); | ||||
▲ Show 20 Lines • Show All 663 Lines • Show Last 20 Lines |