lib/xmain: Print usage info in separate log
This commit is contained in:
parent
80b9d1b057
commit
2df2c781e9
1 changed files with 3 additions and 3 deletions
|
|
@ -66,10 +66,10 @@ func Main(run RunFunc) {
|
|||
}
|
||||
|
||||
if msg != "" {
|
||||
if usage {
|
||||
msg = fmt.Sprintf("%s\n%s", msg, "Run with --help to see usage.")
|
||||
}
|
||||
ms.Log.Error.Print(msg)
|
||||
if usage {
|
||||
ms.Log.Error.Print("Run with --help to see usage.")
|
||||
}
|
||||
}
|
||||
os.Exit(code)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue