Skip to content
Myr

Slight formatting change, to make next commit more readable

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Eric Paris · committed by Eric Paris · parent 29e27b1 · Browse files · 1 file+10 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−11 removed

  • other:+10 added−11 removed

1 file+10 added−11 removed

modified:command.go+10 added-11 removed
420 unmodified lines
421 r.SetOutput(r.cmdErrorBuf)422 c.Usage()423 r.SetOutput(out)424 return err425 } else {426 // If help is called, regardless of other flags, we print that.427 // Print help also if c.Run is nil.428 if c.helpFlagVal || !c.Runnable() {429 c.Help()430 return nil431 }432433 c.preRun()434 argWoFlags := c.Flags().Args()435 c.Run(c, argWoFlags)425 }426 // If help is called, regardless of other flags, we print that.427 // Print help also if c.Run is nil.428 if c.helpFlagVal || !c.Runnable() {429 c.Help()430 return nil431 }432433 c.preRun()434 argWoFlags := c.Flags().Args()435 c.Run(c, argWoFlags)436 return nil437}438439func (c *Command) preRun() {440 for _, x := range initializers {
474 unmodified lines