Skip to content

Commit a523087

Browse files
committed
Fix version flag to use --version and -v.
-v was reserved for verbose at f999e69 but then removed 4aa6a86 because it caused issues with the cli package.
1 parent 8a56c40 commit a523087

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

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)