cli: Remove help sub-command and --version flag (#2030)

This is to bring consistent CLI experience as before.
This commit is contained in:
Harshavardhana
2017-02-21 23:00:09 +01:00
committed by Anis Elleuch
parent 1cfb326e2f
commit 2ca601ef22
4 changed files with 22 additions and 16 deletions
+2 -5
View File
@@ -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.") {
@@ -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"