Skip to content

cmd/go: making the output of the go clean -h command more informative #68242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
qrtalaci opened this issue Jun 28, 2024 · 3 comments
Closed

cmd/go: making the output of the go clean -h command more informative #68242

qrtalaci opened this issue Jun 28, 2024 · 3 comments

Comments

@qrtalaci
Copy link

Go version

go version go1.22.4 linux/amd64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/lkurta/.cache/go-build'
GOENV='/home/lkurta/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/lkurta/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/lkurta/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4069208939=/tmp/go-build -gno-record-gcc-switches'

What did you do?

go clean -h command was issued and the output was not enough informative

What did you see happen?

The output is:

usage: go clean [clean flags] [build flags] [packages]
Run 'go help clean' for details.

The [clean flags] part is not enough meaningful, and it is proposed to be modified to

go clean [-i] [-r] [-cache] [-testcache] [-modcache] [-fuzzcache] [build flags] [packages]
Run ' go help clean' for details 

by @ianlancetaylor here: https://groups.google.com/g/golang-nuts/c/VENQ0fqLCSc/m/qO8EuawVBwAJ

What did you expect to see?

The expected output is:

go clean [-i] [-r] [-cache] [-testcache] [-modcache] [-fuzzcache] [build flags] [packages]
Run ' go help clean' for details 
@qrtalaci qrtalaci changed the title Making the output of the go clean -h command more informative cmd/go: making the output of the go clean -h command more informative Jun 28, 2024
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/595757 mentions this issue: cmd/go: making the output of the go clean -h command more informative

@qrtalaci
Copy link
Author

@adonese with https://go.dev/cl/593639 has already taken care of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants