Skip to content
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

feat: better quote inputs #1

Open
fybx opened this issue Jun 14, 2023 · 0 comments
Open

feat: better quote inputs #1

fybx opened this issue Jun 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fybx
Copy link
Owner

fybx commented Jun 14, 2023

Example Input

$ demo --sentence="this is a sentence" --another_arg "another quote"

Expected Output

c.parse_string("--sentence=\"this is a sentence\"") should produce the following dictionary:

{"sentence": "this is a sentence", "another_arg": "another quote"}

or if a class-level setting like "Crispy.keep_quotes" is set to True

{"sentence": "\"this is a sentence\"", "another_arg": "\"another quote\""}

@fybx fybx self-assigned this Jun 14, 2023
@fybx fybx added the enhancement New feature or request label Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant