Skip to content

Is there a way to override the "version" command? #200

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

Closed
Eason-Lian opened this issue Dec 13, 2017 · 3 comments
Closed

Is there a way to override the "version" command? #200

Eason-Lian opened this issue Dec 13, 2017 · 3 comments
Labels

Comments

@Eason-Lian
Copy link

I'm trying to write some custom logic in version command. Is there a way to do that? I'm using the latest version (v2.0.275.0).

@ericnewton76
Copy link
Member

Can you clarify a little more of what your doing, whats happening, and what you were expecting?

@Eason-Lian
Copy link
Author

@ericnewton76 Thanks for replying! For some reason, I'm not able to modify assembly information. That means the version which "--version" shows is not correct.

What I want is to specify assembly version in a configuration file (xml/json) and then read them when user is typing "--version". I created a custom VersionOptions in my project but unfortunately it can't be reached. Is there a way to override the default version option?

@stabiliser
Copy link

I have the same problem, am wanting to have a 'version' command to retrieve the version from a server, but CommandLineParser is always outputting the client version if I use 'version'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants