From a720769778c6e4ca3be56f702b740a043c73bd3d Mon Sep 17 00:00:00 2001 From: mantuliu <240951888@qq.com> Date: Fri, 27 Mar 2020 11:22:21 +0800 Subject: [PATCH] Optimize the hints at the beginning, when choosing a process #1024 --- bin/as.sh | 2 +- boot/src/main/java/com/taobao/arthas/boot/ProcessUtils.java | 2 +- site/src/site/sphinx/en/start-arthas.md | 2 +- site/src/site/sphinx/start-arthas.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/as.sh b/bin/as.sh index d973bd3fb..82d0ddc2c 100755 --- a/bin/as.sh +++ b/bin/as.sh @@ -645,7 +645,7 @@ parse_arguments() return 1 fi - echo "Found existing java process, please choose one and hit RETURN." + echo "Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER." index=0 suggest=1 diff --git a/boot/src/main/java/com/taobao/arthas/boot/ProcessUtils.java b/boot/src/main/java/com/taobao/arthas/boot/ProcessUtils.java index e33f167d2..592ba7181 100644 --- a/boot/src/main/java/com/taobao/arthas/boot/ProcessUtils.java +++ b/boot/src/main/java/com/taobao/arthas/boot/ProcessUtils.java @@ -45,7 +45,7 @@ public class ProcessUtils { return -1; } - AnsiLog.info("Found existing java process, please choose one and hit RETURN."); + AnsiLog.info("Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER."); // print list int count = 1; for (String process : processMap.values()) { diff --git a/site/src/site/sphinx/en/start-arthas.md b/site/src/site/sphinx/en/start-arthas.md index 7efe627f1..482ba14a8 100644 --- a/site/src/site/sphinx/en/start-arthas.md +++ b/site/src/site/sphinx/en/start-arthas.md @@ -9,7 +9,7 @@ Start Arthas ```bash ➜ bin git:(develop) ✗ ./as.sh -Found existing java process, please choose one and hit RETURN. +Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER. [1]: 3088 org.jetbrains.idea.maven.server.RemoteMavenServer * [2]: 12872 org.apache.catalina.startup.Bootstrap [3]: 2455 diff --git a/site/src/site/sphinx/start-arthas.md b/site/src/site/sphinx/start-arthas.md index 61a4e2de5..9a8db3492 100644 --- a/site/src/site/sphinx/start-arthas.md +++ b/site/src/site/sphinx/start-arthas.md @@ -9,7 +9,7 @@ ```bash ➜ bin git:(develop) ✗ ./as.sh -Found existing java process, please choose one and hit RETURN. +Found existing java process, please choose one and input the serial number of the process, eg: 1 . Then hit ENTER. [1]: 3088 org.jetbrains.idea.maven.server.RemoteMavenServer * [2]: 12872 org.apache.catalina.startup.Bootstrap [3]: 2455