Skip to content

Commit

Permalink
Make wording in the usage message less technical
Browse files Browse the repository at this point in the history
  • Loading branch information
rillig committed Aug 19, 2023
1 parent 78fcdcb commit b6f3e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (g *gobco) parseOptions(argv []string) []string {
flags.BoolVar(&help, "help", false,
"print the available command line options")
flags.BoolVar(&g.branch, "branch", false,
"instrument branches, not conditions")
"cover branches, not conditions")
flags.BoolVar(&g.immediately, "immediately", false,
"persist the coverage immediately at each check point")
flags.BoolVar(&g.keep, "keep", false,
Expand Down
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func Test_gobco_parseCommandLine__usage(t *testing.T) {
"flag provided but not defined: -invalid\n"+
"usage: gobco [options] package...\n"+
" -branch\n"+
" \tinstrument branches, not conditions\n"+
" \tcover branches, not conditions\n"+
" -cover-test\n"+
" \tcover the test code as well\n"+
" -help\n"+
Expand Down Expand Up @@ -219,7 +219,7 @@ func Test_gobco_parseCommandLine__help(t *testing.T) {
s.CheckEquals(stdout.String(), ""+
"usage: gobco [options] package...\n"+
" -branch\n"+
" \tinstrument branches, not conditions\n"+
" \tcover branches, not conditions\n"+
" -cover-test\n"+
" \tcover the test code as well\n"+
" -help\n"+
Expand Down

0 comments on commit b6f3e9a

Please sign in to comment.