[
https://issues.apache.org/jira/browse/SOLR-17442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887093#comment-17887093
]
ASF subversion and git services commented on SOLR-17442:
--------------------------------------------------------
Commit 16e26fba2c225e3cf5d45f39f5f4211b836d24d6 in solr's branch
refs/heads/branch_9x from Eric Pugh
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=16e26fba2c2 ]
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.
(cherry picked from commit 30d34cb95abb3979a65eb427230ad21584e3cb40)
> 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: [email protected]
For additional commands, e-mail: [email protected]