Commandline: Is there a way to override the "version" command?

Created on 13 Dec 2017  路  3Comments  路  Source: commandlineparser/commandline

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).

question

Most helpful comment

@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?

All 3 comments

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

@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?

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'.

Was this page helpful?
0 / 5 - 0 ratings