KEMBAR78
Fix regression when using CLI boolean flags without explicit values by joseluisq · Pull Request #468 · static-web-server/static-web-server · GitHub
Skip to content

Conversation

@joseluisq
Copy link
Collaborator

@joseluisq joseluisq commented Jul 24, 2024

Description

This PR fixes a regression when using CLI boolean flags without explicit values.

Boolean flags like --directory-listing, --compression-static, etc will work properly in three variants.

For example:

--directory-listing
--directory-listing true
--directory-listing=true

Related Issue

It fixes #467

Motivation and Context

Supersedes #215

How Has This Been Tested?

Screenshots (if appropriate):

Now boolean flags like --directory-listing, --compression_static, etc
will work in three variants.

For example:

--directory-listing
--directory-listing true
--directory-listing=true
@joseluisq joseluisq added v2 v2 release bugfix This is PR fixes a bug labels Jul 24, 2024
@joseluisq joseluisq self-assigned this Jul 24, 2024
@semanticdiff-com
Copy link

semanticdiff-com bot commented Jul 24, 2024

Review changes with SemanticDiff.

Analyzed 1 of 1 files.

Filename Status
✔️ src/settings/cli.rs Analyzed

@joseluisq joseluisq merged commit dd48972 into master Jul 24, 2024
@joseluisq joseluisq deleted the fix-regression-boolean-cli-flags branch July 24, 2024 21:06
@joseluisq joseluisq mentioned this pull request Jul 24, 2024
1 task
@joseluisq joseluisq added this to the v2.33.0 milestone Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This is PR fixes a bug v2 v2 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

start as a file server failed

1 participant