[ https://issues.apache.org/jira/browse/SOLR-17442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886266#comment-17886266 ]
ASF subversion and git services commented on SOLR-17442: -------------------------------------------------------- Commit 30d34cb95abb3979a65eb427230ad21584e3cb40 in solr's branch refs/heads/main from Eric Pugh [ https://gitbox.apache.org/repos/asf?p=solr.git;h=30d34cb95ab ] SOLR-17442: Fix a errant deprecation of --debug and properly look up --verbose (#2732) getOpt and getLongOpt are not equivalent. getOpt only works if you have a one letter version of a command, so use getLongOpt for the --verbose flag. > CLI: Resolve -v flag conflict (version, value, verbose) > ------------------------------------------------------- > > Key: SOLR-17442 > URL: https://issues.apache.org/jira/browse/SOLR-17442 > Project: Solr > Issue Type: Sub-task > Components: cli, SolrCLI > Affects Versions: main (10.0), 9.6, 9.7, 9.6.1 > Reporter: Christos Malliaridis > Assignee: Eric Pugh > Priority: Minor > Labels: cli, pull-request-available > Fix For: main (10.0), 9.8 > > Time Spent: 2h 20m > Remaining Estimate: 0h > > The CLI code currently uses the -v flag for "version", "value" and "verbose". > Since -v is commonly used for printing the current version, it should take > precedence over the other options. > In order to resolve this conflict and to avoid future confussion, we should > deprecate (9x) and remove (10.0) the option "verbose" > (-v/-V/-verbose/--verbose), introduce "debug" (-d/–debug) in place of > "verbose" and deprecate (9x) and remove (10.0) the usage of -v for "value". > Note that the option of uppercase -V was only partly replaced in previous PRs > and should completely be merged and deprecated/removed together with -v > according to the above proposal, to avoid further confussion. > Use the [Solr Arguments - Migration > Overview|https://docs.google.com/spreadsheets/d/1ws44kN51WnGwQzOXc8KKRQ93TMgHSqIGb02MRWFel_U/edit?usp=sharing] > for a better overview of the current state. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org