Skip to content

Commit

Permalink
Correct various inaccuries
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmcnamara committed Oct 11, 2019
1 parent 5367257 commit f496ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion command.go
Expand Up @@ -25,7 +25,7 @@ func (c *Command) check() error {
for _, name := range c.Names {
for _, char := range name {
if !unicode.IsLetter(char) && !unicode.IsNumber(char) && char != '-' {
return fmt.Errorf("invalid character in flag name: %q", char)
return fmt.Errorf("invalid character in command name: %q in %q", char, name)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion flag.go
Expand Up @@ -9,7 +9,7 @@ import (
// EmptyValue is an empty value. This is used for flags where the default value should be the empty string.
var EmptyValue = "\000"

// Flag is a string value given in the command line (or by a default value).
// Flag is a string value given in the parameters (or by a default value).
type Flag struct {
Name string // Name of the flag.
Alias rune // Alias of the flag.
Expand Down

0 comments on commit f496ab7

Please sign in to comment.