Skip to content

v0.2.54..v0.2.55 changeset HelpCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-cmd/src/main/cpp/hoot/cmd/HelpCmd.cpp b/hoot-cmd/src/main/cpp/hoot/cmd/HelpCmd.cpp
index e59cd25..64f21fe 100644
--- a/hoot-cmd/src/main/cpp/hoot/cmd/HelpCmd.cpp
+++ b/hoot-cmd/src/main/cpp/hoot/cmd/HelpCmd.cpp
@@ -53,6 +53,9 @@ public:
     // admittedly may need some testing against real world data before they're ready for the prime
     // time. This makes the command list display a little cleaner and less confusing.
     _forceToRndList.append("build-model");
+    _forceToRndList.append("login");
+    _forceToRndList.append("logout");
+    _forceToRndList.append("node-density-plot");
     _forceToRndList.append("optimize-network-conf");
     _forceToRndList.append("perty");
     _forceToRndList.append("score-matches");
@@ -162,11 +165,29 @@ private:
     LOG_VART(rndCmds.size());
 
     // Please update the asciidoc user documentation if you change this usage.
-    cout << "usage: hoot <command> [--trace] [--debug] [--status] [--warn] [--error] " <<
-            "[-D name=value] [-C <config file path>] [<args>]\n";
+    cout << "Usage: hoot <command> [--logLevel] [-C configFile ] [-D optionName=optionValue] " <<
+            "[-D optionName=\"<optionValueEntry 1>;<optionValueEntry 2>;...\"] [args]"
+         << endl << endl;
+
+    cout << "Log Levels:" << endl;
+    cout << "  --trace" << endl;
+    cout << "  --debug" << endl;
+    cout << "  --info" << endl;
+    cout << "  --status" << endl;
+    cout << "  --warn" << endl;
+    cout << "  --error" << endl;
     cout << endl;
-    cout << "For detailed command help type: hoot help (command name)\n"
-            "\n";
+
+    cout << "List Option Operations:" << endl;
+    cout << "  Append:  [-D optionName+=optionValueEntry]" << endl;
+    cout << "  Prepend: [-D optionName++=optionValueEntry]" << endl;
+    cout << "  Remove:  [-D optionName-=optionValueEntry]" << endl;
+    cout << "  Replace: [-D optionName=\"<old optionValueEntry 1>-><new optionValueEntry 1>;<old optionValueEntry 2>-><new optionValueEntry 2>\"...]"
+         << endl;
+    cout << endl;
+
+    cout << "For detailed command help type: hoot help (command name)" << endl << endl;
+
     _printCommands(coreCmds);
     cout << endl << "Advanced:" << endl << endl;
     _printCommands(rndCmds);
Clone this wiki locally