The options are parsed in the parse_options function, but this function is called after the check_host function is called.
The check_host function looks to see if the "verbose" option has been passed and, if so, outputs debug information.
Because the parse_options function is currently only called after the check_host function has run, the "verbose" option is not detected until after the check_host function is run and this additional debug information is not output even when the "verbose" option is passed.
Hence, it would be logical to call parse_options before calling check_host so that passing the "verbose" option can cause check_host to output this additional debug information.
The options are parsed in the
parse_options
function, but this function is called after thecheck_host
function is called.The
check_host
function looks to see if the "verbose" option has been passed and, if so, outputs debug information.Because the
parse_options
function is currently only called after thecheck_host
function has run, the "verbose" option is not detected until after thecheck_host
function is run and this additional debug information is not output even when the "verbose" option is passed.Hence, it would be logical to call
parse_options
before callingcheck_host
so that passing the "verbose" option can causecheck_host
to output this additional debug information.