aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-06-29 08:53:50 +0200
committerBjørn Erik Pedersen <[email protected]>2023-06-29 08:53:50 +0200
commit80ecb958951783eb03e23a81800102d0e33db6e1 (patch)
tree5eb22e94b0f0a8f75e863e8cf07d9c7bb2c3074e /commands
parent58e09cc6c728cc0ccec69781fcff92479efe3ead (diff)
downloadhugo-80ecb958951783eb03e23a81800102d0e33db6e1.tar.gz
hugo-80ecb958951783eb03e23a81800102d0e33db6e1.zip
commands: Handle hugo mod get --help
Fixes #11141
Diffstat (limited to 'commands')
-rw-r--r--commands/mod.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mod.go b/commands/mod.go
index 36d4a5596..55b8a8e08 100644
--- a/commands/mod.go
+++ b/commands/mod.go
@@ -224,7 +224,7 @@ Run "go help get" for more information. All flags available for "go get" is also
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
// We currently just pass on the flags we get to Go and
// need to do the flag handling manually.
- if len(args) == 1 && args[0] == "-h" {
+ if len(args) == 1 && args[0] == "-h" || args[0] == "--help" {
return errHelp
}