Return an error on unrecognized arguments when running default commands in Prysm (#9129)

* Return an error on unrecognized arguments when running default commands in Prysm

* fix cases for subcommands

* Deepsource suggestion
This commit is contained in:
Preston Van Loon
2021-06-30 11:24:04 -05:00
committed by GitHub
parent b23f63a064
commit 24d17a536c
6 changed files with 62 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ func main() {
log.WithError(err).Error("Failed to configuring logging to disk.")
}
}
return nil
return cmd.ValidateNoArgs(ctx)
}
defer func() {