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:
parent
e004939abf
commit
2a40ab6393
2 changed files with 7 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ type options struct {
|
|||
|
||||
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"`
|
||||
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"`
|
||||
|
||||
clientCerts []tls.Certificate
|
||||
}
|
||||
|
|
@ -172,7 +172,9 @@ func run(opts *options, domains []string) (*Report, error) {
|
|||
func main() {
|
||||
opts := new(options)
|
||||
|
||||
domains, err := flags.Parse(opts)
|
||||
parser := flags.NewParser(opts, flags.Default)
|
||||
parser.Usage = "[OPTIONS] domain..."
|
||||
domains, err := parser.Parse()
|
||||
errCheck(err)
|
||||
|
||||
if opts.Version {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue