style: no punctuation or capitalization in errors

This commit is contained in:
2025-12-25 23:52:39 -05:00
parent 963435c657
commit e6e4a0df6f
4 changed files with 16 additions and 16 deletions

View File

@@ -24,9 +24,9 @@ func ParseOptions() (*Options, error) {
// Parse non-flag arguments.
if flag.NArg() == 0 {
return nil, fmt.Errorf("No input given.")
return nil, fmt.Errorf("no input given")
} else if flag.NArg() > 1 {
return nil, fmt.Errorf("More than 1 command-line argument.")
return nil, fmt.Errorf("more than 1 command-line argument")
}
return &Options{