Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix regression when using CLI boolean flags without explicit values #468

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

Merged
merged 1 commit into from
Jul 24, 2024

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
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
38 checks passed
@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