Skip to content

Commit

Permalink
Merge branch 'peterlits'
Browse files Browse the repository at this point in the history
let the [sub]Command has its newline (to make it looks better)
  • Loading branch information
PeterlitsZo committed May 16, 2020
2 parents e62f62f + db0c927 commit e2d68e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions argparse_test.go
Expand Up @@ -1693,6 +1693,7 @@ func TestUsageHidden1(t *testing.T) {

func TestUsageSubCommand(t *testing.T) {
expected := `[sub]Command required
usage: zooprog <Command> [-h|--help]
description:
Program that walks us through the zoo
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Expand Up @@ -6,7 +6,7 @@ type subCommandError struct {
}

func (e subCommandError) Error() string {
return "[sub]Command required"
return "[sub]Command required\n"
}

func newSubCommandError(cmd *Command) error {
Expand Down

0 comments on commit e2d68e5

Please sign in to comment.