etcdctl: Rename Start / StartWithErrors to MustStart

This commit is contained in:
Piotr Tabor
2020-09-09 19:32:50 +02:00
parent c32180d772
commit 7c880e5263
3 changed files with 10 additions and 10 deletions

View File

@@ -95,15 +95,15 @@ func init() {
)
}
func StartWithError() error {
func Start() error {
rootCmd.SetUsageFunc(usageFunc)
// Make help just show the usage
rootCmd.SetHelpTemplate(`{{.UsageString}}`)
return rootCmd.Execute()
}
func Start() {
if err := StartWithError(); err != nil {
func MustStart() {
if err := Start(); err != nil {
command.ExitWithError(command.ExitError, err)
}
}