1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Merge branch 'sha-handling' into unittest

This commit is contained in:
koplas 2024-11-22 16:54:45 +01:00
commit 86d7ce13dc
2 changed files with 2 additions and 1 deletions

View file

@ -88,7 +88,7 @@ type config struct {
ignorePattern filter.PatternMatcher ignorePattern filter.PatternMatcher
//lint:ignore SA5008 We are using choice or than once: sha256, sha512 //lint:ignore SA5008 We are using choice or than once: sha256, sha512
PreferredHash hashAlgorithm `long:"preferred_hash" short:"h" choice:"sha256" choice:"sha512" value-name:"HASH" description:"HASH to prefer" toml:"preferred_hash"` PreferredHash hashAlgorithm `long:"preferred_hash" choice:"sha256" choice:"sha512" value-name:"HASH" description:"HASH to prefer" toml:"preferred_hash"`
} }
// configPaths are the potential file locations of the config file. // configPaths are the potential file locations of the config file.

View file

@ -32,6 +32,7 @@ Application Options:
--logfile=FILE FILE to log downloading to (default: downloader.log) --logfile=FILE FILE to log downloading to (default: downloader.log)
--loglevel=LEVEL[debug|info|warn|error] LEVEL of logging details (default: info) --loglevel=LEVEL[debug|info|warn|error] LEVEL of logging details (default: info)
-c, --config=TOML-FILE Path to config TOML file -c, --config=TOML-FILE Path to config TOML file
--preferred_hash=HASH[sha256|sha512] HASH to prefer
Help Options: Help Options:
-h, --help Show this help message -h, --help Show this help message