Skip to content

Commit e046f77

Browse files
Adding grouping to help text
1 parent ad0c67b commit e046f77

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Src/runcpp2/main.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,19 +271,22 @@ int main(int argc, char* argv[])
271271
static_assert(static_cast<int>(runcpp2::CmdOptions::COUNT) == 15, "Update this");
272272
ssLOG_BASE("Usage: runcpp2 [options] [input_file]");
273273
ssLOG_BASE("Options:");
274+
ssLOG_BASE(" Run/Build:");
275+
ssLOG_BASE(" -b, --[b]uild Build the script and copy output files to the working directory");
276+
ssLOG_BASE(" -w, --[w]atch Watch script changes and output any compiling errors");
277+
ssLOG_BASE(" -l, --[l]ocal Build in the current working directory under .runcpp2 directory");
278+
ssLOG_BASE(" -e, --[e]xecutable Runs as executable instead of shared library");
279+
ssLOG_BASE(" -c, --[c]onfig <file> Use specified config file instead of default");
280+
ssLOG_BASE(" -t, --create-script-[t]emplate <file> Creates/prepend runcpp2 script info template");
281+
ssLOG_BASE(" Reset/Cleanup:");
274282
ssLOG_BASE(" -rc, --[r]eset-[c]ache Deletes compiled source files cache only");
275283
ssLOG_BASE(" -ru, --[r]eset-[u]ser-config Replace current user config with the default one");
276-
ssLOG_BASE(" -e, --[e]xecutable Runs as executable instead of shared library");
277-
ssLOG_BASE(" -h, --[h]elp Show this help message");
278284
ssLOG_BASE(" -rd, --[r]eset-[d]ependencies <names> Reset dependencies (comma-separated names, or \"all\" for all)");
279-
ssLOG_BASE(" -l, --[l]ocal Build in the current working directory under .runcpp2 directory");
280285
ssLOG_BASE(" -cu, --[c]lean[u]p Run cleanup commands and remove build directory");
286+
ssLOG_BASE(" Settings:");
281287
ssLOG_BASE(" -sc, --[s]how-[c]onfig-path Show where runcpp2 is reading the config from");
282-
ssLOG_BASE(" -t, --create-script-[t]emplate <file> Creates/prepend runcpp2 script info template");
283-
ssLOG_BASE(" -w, --[w]atch Watch script changes and output any compiling errors");
284-
ssLOG_BASE(" -b, --[b]uild Build the script and copy output files to the working directory");
285288
ssLOG_BASE(" -v, --[v]ersion Show the version of runcpp2");
286-
ssLOG_BASE(" -c, --[c]onfig <file> Use specified config file instead of default");
289+
ssLOG_BASE(" -h, --[h]elp Show this help message");
287290
ssLOG_BASE(" --log-level <level> Sets the log level (Normal, Info, Debug) for runcpp2.");
288291

289292
return 0;

0 commit comments

Comments
 (0)