Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

no help command for standalone, too much to print

Geo32ecc23c7290
diff --git a/src/Controllers/UtilityController.cpp b/src/Controllers/UtilityController.cpp
index 35b46db9..7941b8ba 100644
--- a/src/Controllers/UtilityController.cpp
+++ b/src/Controllers/UtilityController.cpp
@@ -527,8 +527,13 @@ void UtilityController::handleHelp() {
bool UtilityController::isGlobalCommand(const TerminalCommand& cmd) {
std::string root = cmd.getRoot();
- return (root == "help" || root == "h" || root == "?" ||
- root == "mode" || root == "m" || root == "l" ||
+
+ // Help is not available in standalone mode, too big to print it
+ if (state.getTerminalMode() != TerminalTypeEnum::Standalone) {
+ if (root == "help" || root == "h" || root == "?") return true;
+ }
+
+ return (root == "mode" || root == "m" || root == "l" ||
root == "logic" || root == "P" || root == "p") ||
root == "system";
}
\ No newline at end of file