mviereck / runx

Provide X server on MS Windows with cookie authentication.
MIT License
87 stars 14 forks source link

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 1 year ago

RolandRosier commented 1 year ago

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.