]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update go clean help message
authorMohamed Yousif <mmbusif@gmail.com>
Mon, 24 Jun 2024 16:14:03 +0000 (16:14 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 1 Jul 2024 14:58:10 +0000 (14:58 +0000)
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: 3048b2e4bd10a8d25da479f96c9d90ecb3c63082
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>
src/cmd/go/alldocs.go
src/cmd/go/internal/clean/clean.go

index e87e6ebe465587b6311f9a931bfc7cdae09518b9..2840ba6ea9f2208f11f7bd1bf905282cdc8da812 100644 (file)
 //
 // 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,
index de2ef9dcb957bb8bf55cde1269c908c373d57abd..3b5924fe13d147d5073ea99763e08e9ebdced892 100644 (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.