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 <https://groups.google.com/g/golang-nuts/c/VENQ0fqLCSc/m/qO8EuawVBwAJ?pli=1>.

Change-Id: Ia509a38ee9ec7c31d384c3563535c5e3ccd9a9ce
GitHub-Last-Rev: 3048b2e4bd
GitHub-Pull-Request: golang/go#68135
Reviewed-on: https://go-review.googlesource.com/c/go/+/593639
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
Mohamed Yousif 2024-06-24 16:14:03 +00:00 committed by Gopher Robot
parent cdbf5f2f7e
commit d3c93f2f00
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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.