#compdef opticsmon

function _opticsmon {

	_arguments -C -A "*" \
		"--monitor[Run continuously and report on link state changes collecting optics health data when a change is detected]" \
		"--send-report[Report the optics health data to the Support Element]" \
		"--quiet[Be quiet and don't print optics health summary]" \
		"--module-info[Include a base64 encoded binary dump of the module's SFF-8636/8472/8024 standard data for each netdev. This matches 'ethtool --module-info <netdev> raw on']" \
		"--interval[Interval in seconds at which to collect monitoring data in the absence of link state changes. A value larger than 24 hours (86400 seconds) is clamped down to 24 hours.]" \
		"--help[Print this help, then exit]" \
		"--version[Print version information, then exit]" \
		"*:files:_files"
}
