Skip to content
New issue

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

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

Already on GitHub? # to your account

Support space-seperated short option forms #211

Closed
tecosaur opened this issue Aug 11, 2022 · 1 comment · Fixed by #221
Closed

Support space-seperated short option forms #211

tecosaur opened this issue Aug 11, 2022 · 1 comment · Fixed by #221
Labels
bug Something isn't working

Comments

@tecosaur
Copy link
Contributor

tecosaur commented Aug 11, 2022

At the moment, if I have an option say

-e, --example <int>: this is an example

I can supply this option four ways:

julia demo.jl -- -e1
julia demo.jl -- -e=1
julia demo.jl -- --example 1
julia demo.jl -- --example=1

There's a fifth standard way that seems to have been overlooked:

julia demo.jl -- -e 1

It would be nice if Comonicon could support this.

@Roger-luo
Copy link
Collaborator

julia demo.jl -- -e 1

hmm, I think this is probably a bug of the dash separator, we should support this syntax for the sake of consistency with long options.

@Roger-luo Roger-luo added the bug Something isn't working label Aug 11, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants