Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
265e4f7d8a |
@@ -422,10 +422,8 @@ func (mfa *CLIApp) run(args []string) {
|
||||
Version: mfa.VersionString(),
|
||||
EnableShellCompletion: true,
|
||||
Writer: mfa.Stdout,
|
||||
// urfave/cli writes only its "Incorrect Usage" line to ErrWriter. It
|
||||
// goes to stdout with the help printed after it; run logs the error
|
||||
// itself to stderr. Tests rely on the logger being the only writer to
|
||||
// a run's stderr.
|
||||
// v3 writes its "Incorrect Usage" line to ErrWriter; v2 wrote it to
|
||||
// stdout, before the help, so it stays on stdout.
|
||||
ErrWriter: mfa.Stdout,
|
||||
Flags: commonFlags(),
|
||||
StopOnNthArg: stopOnFirstArg(),
|
||||
|
||||
Reference in New Issue
Block a user