Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case Insensivity of commands, options and parameters #154

Closed
nagkumar opened this issue Jul 28, 2017 · 3 comments
Closed

Case Insensivity of commands, options and parameters #154

nagkumar opened this issue Jul 28, 2017 · 3 comments
Labels
status: duplicate 👨🏻‍🤝‍👨🏻 A duplicate of another issue theme: parser An issue or change related to the parser
Milestone

Comments

@nagkumar
Copy link

It would be good support case in sensitivity of commands..(annotation attribute controlled, with ignoreCase as true)

@CommandLine.Command(name = 'Status')

this way CLI parser should recognize even status, sTatus etc..

@remkop
Copy link
Owner

remkop commented Jul 28, 2017

Good idea, and is related to #9 and #14. I hadn't thought of also making commands case-insensitive in addition to options.

However I'm not sure that this should be an annotation: note that other attributes for controlling how picocli should do parsing have getter and setter methods on CommandLine. For example, setOverwrittenOptionsAllowed and setUnmatchedArgumentsAllowed. So it would be more consistent to add is/setCaseSensitive methods.

@jansohn
Copy link

jansohn commented Oct 10, 2017

+1, setCaseSensitive method on CommandLine would be my preferred solution.

@remkop remkop added this to the backlog milestone Oct 20, 2017
@remkop remkop modified the milestones: backlog, 3.1 May 16, 2018
@remkop remkop modified the milestones: backlog, 3.7 Aug 27, 2018
@remkop remkop added the status: duplicate 👨🏻‍🤝‍👨🏻 A duplicate of another issue label Aug 27, 2018
@remkop remkop modified the milestones: 3.7, 3.8 Oct 19, 2018
@remkop remkop modified the milestones: 4.2, 4.3 Jan 29, 2020
@remkop remkop added the theme: parser An issue or change related to the parser label Apr 2, 2020
@remkop remkop modified the milestones: 4.3, 4.4 Apr 14, 2020
@remkop remkop modified the milestones: 4.4, 4.3 May 6, 2020
@remkop
Copy link
Owner

remkop commented May 6, 2020

Fixed in #9; this will be available from picocli 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate 👨🏻‍🤝‍👨🏻 A duplicate of another issue theme: parser An issue or change related to the parser
Projects
None yet
Development

No branches or pull requests

3 participants