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

Commit cf5c41d1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clarify help command on unknown protolog configuration command" into main

parents f882c532 114e8768
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();