Skip to content

Add support for flags provided with equal signs#9

Open
jaredcwhite wants to merge 1 commit intoioquatix:mainfrom
jaredcwhite:support-flags-with-equal-sign
Open

Add support for flags provided with equal signs#9
jaredcwhite wants to merge 1 commit intoioquatix:mainfrom
jaredcwhite:support-flags-with-equal-sign

Conversation

@jaredcwhite
Copy link
Copy Markdown

I'm working on a migration of the CLI in the Bridgetown web framework from Thor to Samovar. One of the blockers we identified is wanting to continue supporting flags written out in a key=value syntax. So for example:

command --myflag abc
command --myflag=abc

should be handled identically, which is what this PR solves. Let me know what you think about this approach! (Also I just realized I should write tests, if you're interested in the future.) Thanks.

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.

1 participant