argagg icon indicating copy to clipboard operation
argagg copied to clipboard

Allow `-long_name`

Open apavlenko opened this issue 7 years ago • 5 comments

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

apavlenko avatar Dec 05 '17 18:12 apavlenko

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?

vietjtnguyen avatar Dec 14 '17 22:12 vietjtnguyen

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.

apavlenko avatar Dec 15 '17 11:12 apavlenko

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

ajonnet avatar Jan 25 '18 12:01 ajonnet

Merging with #23.

vietjtnguyen avatar Jan 29 '19 09:01 vietjtnguyen

Actually reopening this after https://github.com/vietjtnguyen/argagg/issues/23#issuecomment-458465334

vietjtnguyen avatar Jan 29 '19 09:01 vietjtnguyen