Skip to content

Commit

Permalink
cli: Remove help sub-command and --version flag (#2030)
Browse files Browse the repository at this point in the history
This is to bring consistent CLI experience as before.
  • Loading branch information
harshavardhana authored and vadmeste committed Feb 21, 2017
1 parent 1cfb326 commit 2ca601e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
7 changes: 2 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,6 @@ func registerApp() *cli.App {
Usage: "Show help.",
}

cli.VersionFlag = cli.BoolFlag{
Name: "version, v",
Usage: "Print the version.",
}

app := cli.NewApp()
app.Action = func(ctx *cli.Context) {
if strings.HasPrefix(Version, "RELEASE.") {
Expand All @@ -297,6 +292,8 @@ func registerApp() *cli.App {
}
cli.ShowAppHelp(ctx)
}
app.HideVersion = true
app.HideHelpCommand = true
app.Usage = "Minio Client for cloud storage and filesystems."
app.Commands = commands
app.Author = "Minio.io"
Expand Down
20 changes: 13 additions & 7 deletions vendor/github.com/minio/cli/app.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion vendor/github.com/minio/cli/command.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"revisionTime": "2015-12-11T09:06:21+09:00"
},
{
"checksumSHA1": "x3rk+f4RmPCpMd/ocFOp9Xvz4Mo=",
"checksumSHA1": "7PcmjItrQSx/1sZ6Q395LCzT+iw=",
"path": "github.com/minio/cli",
"revision": "94143931a558fd1cc27146bad1a987b5f99cfd3d",
"revisionTime": "2017-02-19T08:25:02Z"
"revision": "06bb2061ef1493532baf0444818eb5fb4c83caac",
"revisionTime": "2017-02-20T03:57:28Z"
},
{
"path": "github.com/minio/go-homedir",
Expand Down

0 comments on commit 2ca601e

Please sign in to comment.