fix(cli): print error message only once

This commit is contained in:
L. Yeung 2022-05-05 17:27:10 +08:00 committed by Jan De Dobbeleer
parent 07906b6a27
commit 217b3c73c4

View file

@ -38,7 +38,6 @@ on getting started, have a look at the docs at https://ohmyposh.dev`,
func Execute(version string) {
cliVersion = version
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}