Skip to content

Commit 9ff3f31

Browse files
committed
Merge pull request #264 from exercism/version-flag
Fix version flag to use --version and -v.
2 parents 8a56c40 + 69cc1e3 commit 9ff3f31

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The exercism CLI follows [semantic versioning](http://semver.org/).
66

77
## Next Release
88
* **Your contribution here**
9+
* [#264](https://github.com/exercism/cli/pull/264) Fix version flag to use --version and --v - [@Tonkpils](https://github.com/Tonkpils)
910

1011
## v2.2.2 (2015-12-26)
1112

exercism/main.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ func main() {
4343
app.Name = "exercism"
4444
app.Usage = "A command line tool to interact with http://exercism.io"
4545
app.Version = Version
46-
app.HideVersion = true
4746
app.Before = func(ctx *cli.Context) error {
4847
debug.Verbose = ctx.GlobalBool("verbose")
4948
debug.Println("verbose logging enabled")
@@ -60,10 +59,6 @@ func main() {
6059
Name: "verbose",
6160
Usage: "turn on verbose logging",
6261
},
63-
cli.BoolFlag{
64-
Name: "version",
65-
Usage: "print the version",
66-
},
6762
}
6863
app.Commands = []cli.Command{
6964
{

0 commit comments

Comments
 (0)