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

Allow -long_name #17

Open
apavlenko opened this issue Dec 5, 2017 · 5 comments
Open

Allow -long_name #17

apavlenko opened this issue Dec 5, 2017 · 5 comments
Assignees

Comments

@apavlenko
Copy link

Is it possible to allow long names with a single dash?
e.g. -log=errors-only
obviously, short opt-s grouping should be disabled in this case

@vietjtnguyen
Copy link
Owner

Would the idea be that you can configure the parser just prior to parsing to either parse for short option groups or ignore short option groups and treat multi-character options as long options?

@apavlenko
Copy link
Author

apavlenko commented Dec 15, 2017

yes, this is exactly what I mean: the approach of grouping short options is popular but an alternative practice of using long options with a single dash is also popular enough.
so I would recommend a flag in c-tor disabling grouping and allowing -l, -log and --log to be the same option.

@ajonnet
Copy link

ajonnet commented Jan 25, 2018

XCode puts some default arguments, which breaks the argument parser
"-NSDocumentRevisionsDebugMode"

Either a option to filter them or some sort of compatibility mode would be helpfull

@vietjtnguyen
Copy link
Owner

Merging with #23.

@vietjtnguyen
Copy link
Owner

Actually reopening this after #23 (comment)

@vietjtnguyen vietjtnguyen reopened this Jan 29, 2019
@vietjtnguyen vietjtnguyen self-assigned this Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants