From b6f3e9a7ca5ec880d7ba018e0f695ee3145068cb Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sat, 19 Aug 2023 23:35:16 +0200 Subject: [PATCH] Make wording in the usage message less technical --- main.go | 2 +- main_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 896e7bf..2453312 100644 --- a/main.go +++ b/main.go @@ -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, diff --git a/main_test.go b/main_test.go index 6aa43bc..ae4379f 100644 --- a/main_test.go +++ b/main_test.go @@ -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"+ @@ -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"+