Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Options are parsed after check_host called - so the "verbose" option is not detected in time to be used in check_host #13

Open
RolandRosier opened this issue Jan 11, 2023 · 0 comments

Comments

@RolandRosier
Copy link
Contributor

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant