From: Mohamed Yousif Date: Mon, 24 Jun 2024 16:14:03 +0000 (+0000) Subject: cmd/go: update go clean help message X-Git-Tag: go1.23rc2~2^2~32 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d3c93f2f00;p=gostls13.git cmd/go: update go clean help message Update the help message for the go clean command to include the correct usage and flags for better clarity. This change follows instructions by Ian on this thread . Change-Id: Ia509a38ee9ec7c31d384c3563535c5e3ccd9a9ce GitHub-Last-Rev: 3048b2e4bd10a8d25da479f96c9d90ecb3c63082 GitHub-Pull-Request: golang/go#68135 Reviewed-on: https://go-review.googlesource.com/c/go/+/593639 LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Matloob Commit-Queue: Ian Lance Taylor Reviewed-by: Than McIntosh --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index e87e6ebe46..2840ba6ea9 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -276,7 +276,7 @@ // // Usage: // -// go clean [clean flags] [build flags] [packages] +// go clean [-i] [-r] [-cache] [-testcache] [-modcache] [-fuzzcache] [build flags] [packages] // // Clean removes object files from package source directories. // The go command builds most objects in a temporary directory, diff --git a/src/cmd/go/internal/clean/clean.go b/src/cmd/go/internal/clean/clean.go index de2ef9dcb9..3b5924fe13 100644 --- a/src/cmd/go/internal/clean/clean.go +++ b/src/cmd/go/internal/clean/clean.go @@ -28,7 +28,7 @@ import ( ) var CmdClean = &base.Command{ - UsageLine: "go clean [clean flags] [build flags] [packages]", + UsageLine: "go clean [-i] [-r] [-cache] [-testcache] [-modcache] [-fuzzcache] [build flags] [packages]", Short: "remove object files and cached files", Long: ` Clean removes object files from package source directories.