forked from aksdb/CalAnonSync
Report error on command parsing
This commit is contained in:
parent
58238a4e39
commit
dc9594c3f8
|
@ -1,8 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
"log"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -13,7 +15,10 @@ func main() {
|
|||
Run: runSynchronization,
|
||||
}
|
||||
|
||||
rootCmd.Execute()
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func runSynchronization(cmd *cobra.Command, args []string) {
|
||||
|
|
Loading…
Reference in New Issue