[ 
https://issues.apache.org/jira/browse/SOLR-17442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christos Malliaridis updated SOLR-17442:
----------------------------------------
    Description: 
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 confusion, 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 confusion.

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.

  was:
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.


> 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 confusion, 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 confusion.
> 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]

Reply via email to