Skip to content

Allow printing of version number through command-line option - #1878

Merged
forki merged 1 commit into
fsprojects:masterfrom
ErikSchierboom:version
Aug 25, 2016
Merged

forki merged 1 commit into
fsprojects:masterfrom
ErikSchierboom:version

Conversation

@ErikSchierboom

Copy link
Copy Markdown
Contributor

This PR implements the feature requested in #1875, where you can specify the --version argument to print the version to the console. However, while implementing this, I found I had to remove the RequireSubcommand attribute, as --version is (rightfully) not considered a sub-command and having the RequireSubcommand attribute would cause it to fail. The result of this change is of course that sub-commands are now not necessary, which I think is a bit odd. What do you think about this?

The main problem is that #1875 suggests that the --version flags is used for displaying the version, but perhaps it should just be a regular subcommand?

@forki

forki commented Aug 24, 2016

Copy link
Copy Markdown
Member

/cc @eiriktsarpalis

@eiriktsarpalis

Copy link
Copy Markdown
Member

@forki LGTM

@ErikSchierboom ErikSchierboom changed the title Allow printing of version number through command-line option [WIP] Allow printing of version number through command-line option Aug 25, 2016
@ErikSchierboom

Copy link
Copy Markdown
Contributor Author

I'll remove the [WIP] part from the title then.

@forki
forki merged commit 5a97f96 into fsprojects:master Aug 25, 2016
@forki

forki commented Aug 25, 2016

Copy link
Copy Markdown
Member

thanks!

@ErikSchierboom

Copy link
Copy Markdown
Contributor Author

🎉

@ErikSchierboom
ErikSchierboom deleted the version branch August 25, 2016 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants