From cb7a7c56eea7f9210e93e75ac149b90c357b7f97 Mon Sep 17 00:00:00 2001 From: Gregor Noczinski Date: Sat, 23 Jan 2016 14:50:25 +0100 Subject: [PATCH] * Fixed typos --- app.go | 6 +++--- command.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.go b/app.go index be35114..d4d278f 100644 --- a/app.go +++ b/app.go @@ -44,9 +44,9 @@ type App struct { Action func(context *Context) // Execute this function if the proper command cannot be found CommandNotFound func(context *Context, command string) - // 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. - // If this function is not set the "Incorrect usage" is displayed and the execution is interrupted. + // Execute this function, if an usage error occurs. This is useful for displaying customized usage error messages. + // 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. OnUsageError func(context *Context, err error, isSubcommand bool) error // Compilation date Compiled time.Time diff --git a/command.go b/command.go index e448e2a..b2d797f 100644 --- a/command.go +++ b/command.go @@ -30,9 +30,9 @@ type Command struct { After func(context *Context) error // The function to call when this command is invoked Action func(context *Context) - // 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. - // If this function is not set the "Incorrect usage" is displayed and the execution is interrupted. + // Execute this function, if an usage error occurs. This is useful for displaying customized usage error messages. + // 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. OnUsageError func(context *Context, err error) error // List of child commands Subcommands []Command