Skip to content

Commit 733e5a1

Browse files
kennyfellowsSuperQ
andauthored
feature: enable -m flag for parse_errors command. Signed-off-by: Kenny Fellows <[email protected]> (#1135)
Signed-off-by: Kenneth Fellows <[email protected]> Co-authored-by: Ben Kochie <[email protected]>
1 parent 18b400c commit 733e5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var (
9898
failOnParseErrors = kingpin.Flag("fail-on-parse-errors", "Exit with a non-zero status if there are MIB parsing errors").Default("false").Bool()
9999
snmpMIBOpts = kingpin.Flag("snmp.mibopts", "Toggle various defaults controlling MIB parsing, see snmpwalk --help").String()
100100
generateCommand = kingpin.Command("generate", "Generate snmp.yml from generator.yml")
101-
userMibsDir = generateCommand.Flag("mibs-dir", "Paths to mibs directory").Default("").Short('m').Strings()
101+
userMibsDir = kingpin.Flag("mibs-dir", "Paths to mibs directory").Default("").Short('m').Strings()
102102
generatorYmlPath = generateCommand.Flag("generator-path", "Path to the input generator.yml file").Default("generator.yml").Short('g').String()
103103
outputPath = generateCommand.Flag("output-path", "Path to write the snmp_exporter's config file").Default("snmp.yml").Short('o').String()
104104
parseErrorsCommand = kingpin.Command("parse_errors", "Debug: Print the parse errors output by NetSNMP")

0 commit comments

Comments
 (0)