Fix up validation a bit (#6786)

- Missing newline
- Include validate in the list of subcommands - fixes #6785
This commit is contained in:
Matthew McPherrin 2023-03-30 16:11:28 -04:00 committed by GitHub
parent 0d0116dd3f
commit 6d37299ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ func init() {
// TODO(#6763): Move this inside of main().
cmd.RegisterCommand("--list", func() {
for _, c := range cmd.AvailableCommands() {
if c != "boulder" && c != "--list" && c != "validate" {
if c != "boulder" && c != "--list" {
fmt.Println(c)
}
}
@ -110,7 +110,7 @@ func init() {
}
err := readAndValidateConfigFile(*component, *configFile)
if err != nil {
fmt.Fprintf(os.Stderr, "Error validating configuration: %s", err)
fmt.Fprintf(os.Stderr, "Error validating configuration: %s\n", err)
os.Exit(1)
}
}, nil)