1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Set the default of 'validatorpresets' to 'mandatory'.

This commit is contained in:
Sascha L. Teichmann 2023-01-27 17:40:17 +01:00
parent bcc31c0cd6
commit 9abc83edc1
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ type options struct {
RemoteValidator string `long:"validator" description:"URL to validate documents remotely" value-name:"URL"` RemoteValidator string `long:"validator" description:"URL to validate documents remotely" value-name:"URL"`
RemoteValidatorCache string `long:"validatorcache" description:"FILE to cache remote validations" value-name:"FILE"` RemoteValidatorCache string `long:"validatorcache" description:"FILE to cache remote validations" value-name:"FILE"`
RemoteValidatorPresets []string `long:"validatorpreset" description:"One or more presets to validate remotely"` RemoteValidatorPresets []string `long:"validatorpreset" description:"One or more presets to validate remotely" default:"mandatory"`
} }
func errCheck(err error) { func errCheck(err error) {

View file

@ -15,7 +15,7 @@ Application Options:
-r, --rate= The average upper limit of https operations per second -r, --rate= The average upper limit of https operations per second
--validator=URL URL to validate documents remotely --validator=URL URL to validate documents remotely
--validatorcache=FILE FILE to cache remote validations --validatorcache=FILE FILE to cache remote validations
--validatorpreset= One or more presets to validate remotely --validatorpreset= One or more presets to validate remotely (default: mandatory)
Help Options: Help Options:
-h, --help Show this help message -h, --help Show this help message