Skip to content

Commit

Permalink
feature: enable -m flag for parse_errors command. Signed-off-by: Kenn…
Browse files Browse the repository at this point in the history
…y Fellows <kennyfellows@gmail.com> (prometheus#1135)

Signed-off-by: Kenneth Fellows <kennyfellows@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
  • Loading branch information
kennyfellows and SuperQ authored Mar 19, 2024
1 parent 18b400c commit 733e5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var (
failOnParseErrors = kingpin.Flag("fail-on-parse-errors", "Exit with a non-zero status if there are MIB parsing errors").Default("false").Bool()
snmpMIBOpts = kingpin.Flag("snmp.mibopts", "Toggle various defaults controlling MIB parsing, see snmpwalk --help").String()
generateCommand = kingpin.Command("generate", "Generate snmp.yml from generator.yml")
userMibsDir = generateCommand.Flag("mibs-dir", "Paths to mibs directory").Default("").Short('m').Strings()
userMibsDir = kingpin.Flag("mibs-dir", "Paths to mibs directory").Default("").Short('m').Strings()
generatorYmlPath = generateCommand.Flag("generator-path", "Path to the input generator.yml file").Default("generator.yml").Short('g').String()
outputPath = generateCommand.Flag("output-path", "Path to write the snmp_exporter's config file").Default("snmp.yml").Short('o').String()
parseErrorsCommand = kingpin.Command("parse_errors", "Debug: Print the parse errors output by NetSNMP")
Expand Down

0 comments on commit 733e5a1

Please sign in to comment.