Parse global options

This commit is contained in:
Kovid Goyal
2022-08-16 18:02:31 +05:30
parent 10b74d0703
commit 77f7ce82c0
6 changed files with 114 additions and 28 deletions

View File

@@ -19,7 +19,7 @@ func main() {
cli.Init(root)
if err := root.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, "Error:", err)
os.Exit(1)
}
}