summaryrefslogtreecommitdiffstats
path: root/cmd/platform/mattermost.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/mattermost.go')
-rw-r--r--cmd/platform/mattermost.go17
1 files changed, 2 insertions, 15 deletions
diff --git a/cmd/platform/mattermost.go b/cmd/platform/mattermost.go
index 2ee539980..fc2f1d4c2 100644
--- a/cmd/platform/mattermost.go
+++ b/cmd/platform/mattermost.go
@@ -5,7 +5,6 @@ package main
import (
"errors"
- "flag"
"fmt"
"os"
@@ -36,20 +35,8 @@ func main() {
rootCmd.AddCommand(serverCmd, versionCmd, userCmd, teamCmd, licenseCmd, importCmd, resetCmd, channelCmd, rolesCmd, testCmd, ldapCmd)
- flag.Usage = func() {
- rootCmd.Usage()
- }
- parseCmds()
-
- if flagRunCmds {
- CommandPrintErrorln("---------------------------------------------------------------------------------------------")
- CommandPrintErrorln("DEPRECATED! All previous commands are now deprecated. Run: platform help to see the new ones.")
- CommandPrintErrorln("---------------------------------------------------------------------------------------------")
- doLegacyCommands()
- } else {
- if err := rootCmd.Execute(); err != nil {
- os.Exit(1)
- }
+ if err := rootCmd.Execute(); err != nil {
+ os.Exit(1)
}
}