@@ -325,12 +325,6 @@ goto err
325325@ echo --data-home dir Sets the solr.data.home system property, where Solr will store index data in ^ < instance_dir^ > /data subdirectories.
326326@ echo If not set, Solr uses solr.solr.home for both config and data.
327327@ echo .
328- @ echo -e/--example name Name of the example to run; available examples:
329- @ echo cloud: SolrCloud example
330- @ echo techproducts: Comprehensive example illustrating many of Solr's core capabilities
331- @ echo schemaless: Schema-less example (schema is inferred from data during indexing)
332- @ echo films: Example of starting with _default configset and defining explicit fields dynamically
333- @ echo .
334328@ echo --jvm-opts opts Additional parameters to pass to the JVM when starting Solr, such as to setup
335329@ echo Java debug options. For example, to enable a Java debugger to attach to the Solr JVM
336330@ echo you could pass: --jvm-opts " -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983"
@@ -341,8 +335,16 @@ goto err
341335@ echo you could pass: -j " --include-jetty-dir=/etc/jetty/custom/server/"
342336@ echo In most cases, you should wrap the additional parameters in double quotes.
343337@ echo .
338+ @ echo -e/--example name Name of the example to run; available examples:
339+ @ echo cloud: SolrCloud example
340+ @ echo techproducts: Comprehensive example illustrating many of Solr's core capabilities
341+ @ echo schemaless: Schema-less example (schema is inferred from data during indexing)
342+ @ echo films: Example of starting with _default configset and defining explicit fields dynamically
343+ @ echo .
344344@ echo -y/--no-prompt Don't prompt for input; accept all defaults when running examples that accept user input
345345@ echo .
346+ @ echo --prompt < values> Don't prompt for input; comma delimited list of inputs read when running examples that accept user input."
347+ @ echo .
346348@ echo --verbose and -q/--quiet Verbose or quiet logging. Sets default log level to DEBUG or WARN instead of INFO
347349@ echo .
348350goto done
@@ -399,6 +401,7 @@ IF "%1"=="-j" goto set_addl_jetty_config
399401IF " %1 " == " --jettyconfig" goto set_addl_jetty_config
400402IF " %1 " == " -y" goto set_noprompt
401403IF " %1 " == " --no-prompt" goto set_noprompt
404+ IF " %1 " == " --prompt" goto set_prompt
402405
403406REM Skip stop arg parsing if not stop command
404407IF NOT " %SCRIPT_CMD% " == " stop" goto parse_general_args
@@ -695,6 +698,12 @@ set "PASS_TO_RUN_EXAMPLE=--no-prompt !PASS_TO_RUN_EXAMPLE!"
695698SHIFT
696699goto parse_args
697700
701+ :set_prompt
702+ set " PASS_TO_RUN_EXAMPLE = --prompt %~2 !PASS_TO_RUN_EXAMPLE! "
703+
704+ SHIFT
705+ goto parse_args
706+
698707REM Handle invalid arguments passed to special commands (start, stop, restart)
699708:invalid_cmd_line
700709@ echo .
0 commit comments