Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Refactor command-line parser and add version flag to k, klr and kpm #308

Merged
merged 1 commit into from
Jun 13, 2014

Conversation

ChengTian
Copy link
Contributor

parent #273
Another approach to add version flags. @davidfowl , please help to compare it with the approach in #307

@davidfowl
Copy link
Member

This looks much better


private static string GetVersion()
{
var assembly = typeof(RuntimeBootstrapper).GetTypeInfo().Assembly;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic might be broken on mono. I'll try to verify this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't have a Main/Program class as an entry point in this shared project, I chose the RuntimeBootstrapper. Not sure why it might be broken on mono. Please let me know the result after you verify it.

@ChengTian ChengTian merged commit f8350e0 into dev Jun 13, 2014
@ChengTian ChengTian deleted the refactor-parser-and-add-version-flag branch June 13, 2014 00:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants