[
https://issues.apache.org/jira/browse/SOLR-16821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17862698#comment-17862698
]
Jan Høydahl commented on SOLR-16821:
------------------------------------
Commons CLI has a [.optionalArg(true)
setting|https://commons.apache.org/proper/commons-cli/apidocs/org/apache/commons/cli/Option.html#setOptionalArg(boolean)]
for options, that will support {{\--isFoo}} as well as {{\--isFoo true}}. But
I suppose the parser may get confused if this option is then used as the last
option before any positional arguments, which may then be gobbled up :)
> Make all boolean options not take a true/false but just the -option be enough.
> ------------------------------------------------------------------------------
>
> Key: SOLR-16821
> URL: https://issues.apache.org/jira/browse/SOLR-16821
> Project: Solr
> Issue Type: Sub-task
> Components: cli
> Affects Versions: 9.2.1
> Reporter: Eric Pugh
> Priority: Minor
>
> We have a mish mash of ways of passing in a boolean. I see "-commit" and
> "-optimize", but I also see "-prompt true" and "-deleteConfig true". Let's
> just make passing in the switch mean true wherever possible.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]