Skip to content

Navigation Menu

Sign in
Sign up

optionArgumentSeparator should allow multiple values #78

Unanswered
joffrey-bion asked this question in Ideas and suggestions
Discussion options

Some CLIs don't enforce one convention, but accept several. The Clikt library accepts both spaces and = as separators between option names and values (--foo bar and --foo=bar).

It would be nice to allow expressing this in the spec.

You must be logged in to vote

Replies: 2 comments

Comment options

Note: there could be a preferred option argument separator, the rest being just 'acceptable'. This could be expressed as a separate field or just with the order of the list. Probably declaring that the first separator is the preferred approach might be enough.

You must be logged in to vote
0 replies
Comment options

I've found this need too. I would put from my experience that there is not really a preferred option so much as a more commonly used convention. I think the order in an array would be adequate to communicate this. I've never seen a tool that really works better with one over another.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /