-
Notifications
You must be signed in to change notification settings - Fork 19
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
Short options as strings #12
Comments
Agree. It makes it difficult to setup short option in Swift. On the other hand using char is nice in Objective-C. Need to come up with nice implementation for both, without introducing another set of registration methods. Also don't want to break existing implementation. Perhaps adding new registration method that would accept "registration object" which would describe all parameters would be nice and future proof (currently there could be two subclasses, one taking char, one string for example). |
What about adding a convenience registration method that takes a string and picks the first char, calling the other method with it? El 16/12/2014, a les 11:33, tomaz [email protected] va escriure:
|
That's exactly how I meant to implement it, but don't just want to add another method. Instead I'm aiming for more flexible and future proof approach. |
I find that using chars for the short options, while technically correct, is a bit convoluted, specially since they are later converted to NSStrings anyway. I'd request to have additional methods in which short options are declared as NSStrings, as that would make them more usable from Swift (where getting hold of a single char is a pain)
The text was updated successfully, but these errors were encountered: