/ go Public
cmd/go: show the help message instead of suggesting "go help subcommand" when the --help/-h flag is passed #27580
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
I asked to print the help usage of the command
What did you expect to see?
I would like to see the help output instead of suggesting me to run
go help list.
What did you see instead?
It suggested to me to run
go help list.
I think this is a not very user friendly output.
-h) is a very common flag and is even parsed by the
gocommand understand that I'm seeking for a help, instead of suggesting me to run
go help list, it should show me the help message.
As an example user case, suppose you run a command and somehow wrote it wrong:
gocommand would support the
-hflags, I could press the
upkey on my keyboard (the shell would show the last executed command) and append the
--helpflag to see what's wrong:
This example is not only about
go listitself, this applies to every single subcommand of the
gocommand. This happens so many times and I think it's counter intuitive to write a comand from scratch (i.e:
go help list,
go help test, ...). I don't know the origin why
-his permitted and not allowed to be used, but if it's something that can be removed, I suggest we remove the restriction and show the help message instead of suggesting to call
go help subcommand(for subcommand related --help messages).
The text was updated successfully, but these errors were encountered: