Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 114e8768 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Clarify help command on unknown protolog configuration command

Change-Id: I0aff79110c0bf14c125e0fdb5805f0ac91d7e046
Flag: EXEMPT command handling output update only
parent d7ff1620
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -60,6 +60,18 @@ public class ProtoLogCommandHandler extends ShellCommand {
        };
    }

    @Override
    public int handleDefaultCommands(String cmd) {
        if (cmd == null || "help".equals(cmd) || "-h".equals(cmd)) {
            onHelp();
            return 0;
        } else {
            getOutPrintWriter().println("Unknown command: " + cmd +
                    " (use 'help' command for guidance)");
            return -1;
        }
    }

    @Override
    public void onHelp() {
        PrintWriter pw = getOutPrintWriter();