From 8ccdb439759f7f0dea2ce775400a051f6b0d2876 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Thu, 26 Mar 2020 20:00:08 +0800 Subject: [PATCH] support q to quit. close #1075 --- .../arthas/core/shell/handlers/shell/ShellLineHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/taobao/arthas/core/shell/handlers/shell/ShellLineHandler.java b/core/src/main/java/com/taobao/arthas/core/shell/handlers/shell/ShellLineHandler.java index 275b9c4f..70d09aa0 100644 --- a/core/src/main/java/com/taobao/arthas/core/shell/handlers/shell/ShellLineHandler.java +++ b/core/src/main/java/com/taobao/arthas/core/shell/handlers/shell/ShellLineHandler.java @@ -41,7 +41,7 @@ public class ShellLineHandler implements Handler { } String name = first.value(); - if (name.equals("exit") || name.equals("logout") || name.equals("quit")) { + if (name.equals("exit") || name.equals("logout") || name.equals("q") || name.equals("quit")) { handleExit(); return; } else if (name.equals("jobs")) {