epugh commented on code in PR #4127:
URL: https://github.com/apache/solr/pull/4127#discussion_r2816475591
##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -1121,9 +1155,24 @@ protected String prompt(Scanner s, String prompt) {
protected String prompt(Scanner s, String prompt, String defaultValue) {
echo(prompt);
- String nextInput = s.nextLine();
+ String nextInput;
+ if (usingPrompts) {
+ // Reading from prompts option - use next() instead of nextLine()
+ nextInput = s.hasNext() ? s.next() : null;
+ // Echo the value being used from prompts
+ if (nextInput != null) {
+ echo(nextInput);
+ }
+ } else {
+ // Reading from user input - use nextLine()
Review Comment:
I like seeing the lines because it helps me with debugging... I did
`defaultss` instead of `default` for a configset name and this let me see the
error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]