diff options
| author | Fuwn <[email protected]> | 2022-06-24 20:33:48 -1000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-24 20:33:48 -1000 |
| commit | cfa6b082eaa4a02f34576cbd5a55e3c46f04acdd (patch) | |
| tree | 01fc32af55077dcf7093b904a9208125bb197874 /src/help.cc | |
| parent | fix(node): stringable explicit copy constructor (diff) | |
| download | cait-cfa6b082eaa4a02f34576cbd5a55e3c46f04acdd.tar.xz cait-cfa6b082eaa4a02f34576cbd5a55e3c46f04acdd.zip | |
refactor(help): move version to constexpr
Diffstat (limited to 'src/help.cc')
| -rw-r--r-- | src/help.cc | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/src/help.cc b/src/help.cc index 18853e1..2271e9f 100644 --- a/src/help.cc +++ b/src/help.cc @@ -32,13 +32,29 @@ auto help_message() -> std::string { "manual).\n" "\n" "options:\n" - " --version print cait version (\"" VERSION "\")\n" - " -v, --verbose show all command lines while building\n" - "\n" - " -C DIR change to DIR before doing anything else\n" - " -f FILE specify input build file [default=build.cait]\n" - "\n" - " -j N run N jobs in parallel (0 means infinity) [default=" + " --version print cait version (\"" + + version::whole() + + "\")\n" + " -v, --verbose " + "show all command " + "lines while " + "building\n" + "\n" + " -C DIR " + "change to DIR " + "before doing " + "anything else\n" + " -f FILE " + "specify input " + "build file " + "[default=build." + "cait]\n" + "\n" + " -j N run N " + "jobs in parallel " + "(0 means " + "infinity) " + "[default=" << std::thread::hardware_concurrency() + 2 << " on this system]\n" " -k N keep going until N jobs fail (0 means infinity) " |