-
Notifications
You must be signed in to change notification settings - Fork 122
Add --version parser #455
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
Add --version parser #455
Conversation
40e4dfd to
d759f6d
Compare
|
@HuwCampbell whats your opinion on this? |
|
@HuwCampbell i am also very interested in this feature as this is something that is duplicated practically across all apps ever. |
|
Thanks for opening this conversation. So, obviously a lot of people add these, and really it's not that hard, but there are a few subtleties which I discuss in the wiki. The way you've used an Here's what I suggest in the wiki: As to your specific questions: a) Yes, clearly, as naming it version even broke the test suite, and hundreds of people having to now do qualified imports and be annoyed at me would not be fun (and I would feel bad for making them do extra work). The silly thing though is that as soon as we start adding customisations to versioner, we're almost writing the whole thing anyway! I'll think about this more. |
Ok let me know once you have made a decision. In case you care about my opinion on this:
To summarize your statement: Either we go with
We could call it
Thats true. Providing customization options does not make sense for such a simple thing. This should not keep us from providing a good default that satisfies the needs of most people though. This default probably means using only |
|
@HuwCampbell Have you had time to make your mind up yet? Is there anything I can do to move this forward? |
|
@HuwCampbell We are really waiting for a solution here. Any news? |
|
I think for now: call it simpleVersioner :: String -> Parser (a -> a)and skip the short option |
b3e8e36 to
27fdb77
Compare
Done. Let me know if anything is missing. |
c46dc16 to
7f7adae
Compare
7f7adae to
6cd1dda
Compare
|
Fixed build pipeline. Please run again |
|
Thanks! Merged a while back. |
This MR contains a new
InfoModthat allows to specify a version which can be requested with-vor--version.Open questions:
versiona too generic name? MaybeappVersionis better?-vas it may be used differently by some apps?