mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-19 11:53:21 +00:00
parent
ffd37d4f75
commit
0ff8e13c1c
1 changed files with 1 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" || args[0] == "--help" {
|
if len(args) == 1 && (args[0] == "-h" || args[0] == "--help") {
|
||||||
return errHelp
|
return errHelp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue