Skip to content

chore: fix check for the --open flag #5

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdqst
Copy link

@mdqst mdqst commented Apr 5, 2025

I noticed an issue where the check for the port flag (--port) was incorrectly compared with the string "true". This was causing unintended behavior, as the port is a numerical string (e.g., "6699"), not a boolean value.

The issue has been corrected by replacing the port check with the correct check for the --open flag. Now, the --open flag is properly checked, and if it’s set to "true", the browser will be opened.

This fix ensures that the program behaves as expected, opening the browser when requested.

@o-az
Copy link
Contributor

o-az commented Apr 26, 2025

nice work. LGTM
@cor pls merge

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

Successfully merging this pull request may close these issues.

2 participants