Skip to content

Commit

Permalink
Remove unused --ilo flag
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Feb 22, 2024
1 parent dc59f6e commit 6e805c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Arguments:
-P, --protocol string SNMP protocol (default "2c")
--timeout int SNMP timeout in seconds (default 15)
--snmpwalk-file string Read output from snmpwalk
--ignore-ilo-version Don't check the ILO version
-I, --ignore-ilo-version Don't check the ILO version
-4, --ipv4 Use IPv4
-6, --ipv6 Use IPv6
-V, --version Show version
Expand Down
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,11 @@ func main() {
community = fs.StringP("community", "c", "public", "SNMP community")
protocol = fs.StringP("protocol", "P", "2c", "SNMP protocol")
file = fs.String("snmpwalk-file", "", "Read output from snmpwalk")
ignoreIlo = fs.Bool("ignore-ilo-version", false, "Don't check the ILO version")
ignoreIlo = fs.BoolP("ignore-ilo-version", "I", false, "Don't check the ILO version")
ipv4 = fs.BoolP("ipv4", "4", false, "Use IPv4")
ipv6 = fs.BoolP("ipv6", "6", false, "Use IPv6")
)

// TODO What's the use of this hidden flag?
_ = fs.BoolP("ilo", "I", false, "Checks the version of iLo")
_ = fs.MarkHidden("ilo")

config.ParseArguments()

var (
Expand Down

0 comments on commit 6e805c9

Please sign in to comment.