From 45e668879d763dd6b312034c98f8c5ffa7228ce6 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 9 Oct 2018 10:21:53 -0400 Subject: [PATCH] cmd/go: remove extraneous 'file' from usage message in script_test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Previously, erroneous usage would produce error messages like: FAIL: testdata/script/mod_tidy_replace.txt:4: usage: stdout [-count=N] 'pattern' file where the “file” argument is not actually valid for the stdout command. Change-Id: I74100960f4d25da122faa6c82620995a3fbfc75f Reviewed-on: https://go-review.googlesource.com/c/140858 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/cmd/go/script_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go index 31c6ede2a5..8708dacd41 100644 --- a/src/cmd/go/script_test.go +++ b/src/cmd/go/script_test.go @@ -614,7 +614,7 @@ func scriptMatch(ts *testScript, neg bool, args []string, text, name string) { want = 2 } if len(args) != want { - ts.fatalf("usage: %s [-count=N] 'pattern' file%s", name, extraUsage) + ts.fatalf("usage: %s [-count=N] 'pattern'%s", name, extraUsage) } pattern := args[0] -- 2.48.1