You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go run golang.org/x/tools/cmd/godoc -url=/pkg/fmt
Missing args.
usage: godoc -http=localhost:6060
-analysis string
comma-separated list of analyses to perform (supported: type, pointer). See http://golang.org/lib/godoc/analysis/help.html
-goroot string
Go root directory (default "/usr/local/go")
-http string
HTTP service address (default "localhost:6060")
-index
enable search index
-index_files string
glob pattern specifying index files; if not empty, the index is read from these files in sorted order
-index_interval duration
interval of indexing; 0 for default (5m), negative to only index once at startup
-index_throttle float
index throttle value; 0.0 = no time allocated, 1.0 = full throttle (default 0.75)
-links
link identifiers to their declarations (default true)
-maxresults int
maximum number of full text search results shown (default 10000)
-notes string
regular expression matching note markers to show (default "BUG")
-play
enable playground
-templates string
load templates/JS/CSS from disk in this directory
-timestamps
show timestamps with directory listings
-url string
print HTML for named URL
-v verbose mode
-write_index
write index to a file; the file name must be specified with -index_files
-zip string
zip file providing the file system to serve; disabled if empty
exit status 2
This is a regression from CL 153869, where the logic for incorrect usage detection was modified to be friendlier after CLI removal. It wasn't caught because we didn't have a test for the -url flag yet (we will after your CL, thanks for that).
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Feb 18, 2019
What version of Go are you using (
go version
)?I'm comparing the x/tools repo at
release-branch.go1.11
vsrelease-branch.go1.12
.Does this issue reproduce with the latest release?
Yes, this is broken in
master
of the x/tools repo.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I expected to see HTML similar to what's served by https://golang.org/pkg/fmt/
What did you see instead?
I got an error message indicating that I'd provided invalid arguments (see above).
I have a fix for this, including regression tests. I'll upload it shortly.
The text was updated successfully, but these errors were encountered: