epugh commented on PR #4142:
URL: https://github.com/apache/solr/pull/4142#issuecomment-3915989526
Here is what the formatting of the `--help` looks like now, it's almost
exact same as previously:
```
➜ dev git:(fix_commons_cli_deprecated_calls) ✗ bin/solr create -h
usage: bin/solr create -c <NAME> [-d <DIR>] [-h] [-n <NAME>] [-rf <#>] [-s
<HOST>] [-sh <#>] [-u <credentials>] [-v] [-z <HOST>]
Creates a core or collection depending on whether Solr is running in
standalone (core) or SolrCloud mode (collection).
If you are using standalone mode you must run this command on the Solr
server itself.
List of options:
-h, --help Print this message.
-v, --verbose Enable verbose command output.
-c, --name <NAME> Name of collection or core to create.
-sh, --shards <#> Number of shards; default is 1.
-rf, --replication-factor <#> Number of copies of each document across
the collection (replicas per shard);
default is 1.
-d, --conf-dir <DIR> Configuration directory to copy when
creating the new collection; default is
_default.
-n, --conf-name <NAME> Configuration name; default is the
collection name.
-u, --credentials <credentials> Credentials in the format
username:password. Example: --credentials solr:SolrRocks
-s, --solr-url <HOST> Base Solr URL, which can be used to
determine the zk-host if that's not known;
defaults to: http://localhost:8983.
-z, --zk-host <HOST> Zookeeper connection string; unnecessary
if ZK_HOST is defined in solr.in.sh;
otherwise, defaults to localhost:9983.
Please see the Reference Guide for more tools documentation:
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
➜ dev git:(fix_commons_cli_deprecated_calls) ✗
```
--
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]