* Fixed typos

This commit is contained in:
Gregor Noczinski 2016-01-23 14:50:25 +01:00
parent 7319f042e4
commit cb7a7c56ee
2 changed files with 6 additions and 6 deletions

6
app.go
View File

@ -44,9 +44,9 @@ type App struct {
Action func(context *Context) Action func(context *Context)
// Execute this function if the proper command cannot be found // Execute this function if the proper command cannot be found
CommandNotFound func(context *Context, command string) CommandNotFound func(context *Context, command string)
// Execute this function if an usage error occurs. This is useful for displaying customized usage error messages. // Execute this function, if an usage error occurs. This is useful for displaying customized usage error messages.
// This function is able to manipulate the original error in another. // This function is able to replace the original error messages.
// If this function is not set the "Incorrect usage" is displayed and the execution is interrupted. // If this function is not set, the "Incorrect usage" is displayed and the execution is interrupted.
OnUsageError func(context *Context, err error, isSubcommand bool) error OnUsageError func(context *Context, err error, isSubcommand bool) error
// Compilation date // Compilation date
Compiled time.Time Compiled time.Time

View File

@ -30,9 +30,9 @@ type Command struct {
After func(context *Context) error After func(context *Context) error
// The function to call when this command is invoked // The function to call when this command is invoked
Action func(context *Context) Action func(context *Context)
// Execute this function if an usage error occurs. This is useful for displaying customized usage error messages. // Execute this function, if an usage error occurs. This is useful for displaying customized usage error messages.
// This function is able to manipulate the original error in another. // This function is able to replace the original error messages.
// If this function is not set the "Incorrect usage" is displayed and the execution is interrupted. // If this function is not set, the "Incorrect usage" is displayed and the execution is interrupted.
OnUsageError func(context *Context, err error) error OnUsageError func(context *Context, err error) error
// List of child commands // List of child commands
Subcommands []Command Subcommands []Command