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

Fix version config and make aggreator use new command line parser. (#416)

* Fix version config and make aggreator use new command line parser.

* Replace old error check with check from the library.
This commit is contained in:
Sascha L. Teichmann 2023-08-15 17:54:56 +02:00 committed by GitHub
parent 8aed2c034e
commit d42db07bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 72 deletions

View file

@ -77,7 +77,8 @@ func parseArgsConfig() ([]string, *config, error) {
ConfigLocation: func(cfg *config) string {
return cfg.Config
},
Usage: "[OPTIONS] domain...",
Usage: "[OPTIONS] domain...",
HasVersion: func(cfg *config) bool { return cfg.Version },
SetDefaults: func(cfg *config) {
cfg.Format = defaultFormat
cfg.RemoteValidatorPresets = []string{defaultPreset}