我希望应用程序在每一行上打印其名称,如(shell > ):
shell > --param1 value1 --param2 value2有没有可能用jline3实现?
发布于 2020-04-06 16:49:27
发布于 2020-11-15 17:37:47
参见JLine readLine() javadoc。将命令提示符(shell >)添加到您的命令行界面应用程序调用readLine方法
lineReader.readLine("shell > ", null, null);如果您还想添加buffer作为用户编辑的默认值,则调用readLine方法作为
lineReader.readLine("shell > ", null, "--param1 value1 --param2 value2");https://stackoverflow.com/questions/61055673
复制相似问题