Skip to content

Commit

Permalink
update api tool to be consistent, however not seeing tests or docs
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Mar 4, 2024
1 parent d289da2 commit 28bf2ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solr/core/src/java/org/apache/solr/cli/ApiTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public String getName() {
@Override
public List<Option> getOptions() {
return List.of(
Option.builder()
.longOpt("get")
Option.builder("url")
.longOpt("solr-api-url")
.argName("URL")
.hasArg()
.required(true)
Expand All @@ -65,7 +65,7 @@ public List<Option> getOptions() {
@Override
public void runImpl(CommandLine cli) throws Exception {
String response = null;
String getUrl = cli.getOptionValue("get");
String getUrl = cli.getOptionValue("solr-api-url");
if (getUrl != null) {
response = callGet(getUrl, cli.getOptionValue(SolrCLI.OPTION_CREDENTIALS.getLongOpt()));
}
Expand Down

0 comments on commit 28bf2ae

Please sign in to comment.