mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
58e09cc6c7
commit
80ecb95895
2 changed files with 5 additions and 1 deletions
|
@ -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 {
|
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
|
// We currently just pass on the flags we get to Go and
|
||||||
// need to do the flag handling manually.
|
// 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
|
return errHelp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,10 @@ stdout 'Deleted 2\d{2} files from module cache\.'
|
||||||
cd submod
|
cd submod
|
||||||
hugo mod init testsubmod
|
hugo mod init testsubmod
|
||||||
cmpenv go.mod $WORK/golden/go.mod.testsubmod
|
cmpenv go.mod $WORK/golden/go.mod.testsubmod
|
||||||
|
hugo mod get -h
|
||||||
|
stdout 'hugo mod get \[flags\] \[args\]'
|
||||||
|
hugo mod get --help
|
||||||
|
stdout 'hugo mod get \[flags\] \[args\]'
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
title = "Hugo Modules Test"
|
title = "Hugo Modules Test"
|
||||||
[module]
|
[module]
|
||||||
|
|
Loading…
Reference in a new issue