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

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

This commit is contained in:
Sascha L. Teichmann 2023-07-30 22:37:32 +02:00
parent 8aed2c034e
commit 1d9969162f
5 changed files with 38 additions and 59 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}