We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Erlang/OTP 26 [erts-14.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Elixir 1.15.6 (compiled with Erlang/OTP 26)
Windows
iex(2)> OptionParser.parse(["--source", "false"], strict: [source: :boolean]) {[source: true], ["false"], []}
iex(2)> OptionParser.parse(["--source", "false"], strict: [source: :boolean]) {[source: false], [], []}
I expect it to work like string
iex(1)>OptionParser.parse(["--source", "lib"], strict: [source: :string]) {[source: "lib"], [], []}
The text was updated successfully, but these errors were encountered:
boolean are in the form --foo and --no-foo, not --foo=x:
--foo
--no-foo
--foo=x
iex(1)> OptionParser.parse(["--no-source"], strict: [source: :boolean]) {[source: false], [], []}
Sorry, something went wrong.
ok thanks @wojtekmach, there was an ongoing discussion on openapi.spec repo open-api-spex/open_api_spex#579 . Just as reference
openapi.spec
however I'm going to create a PR to make it more explicit in OptionParser documentation. Thanks again for the quick reply @wojtekmach
No branches or pull requests
Elixir and Erlang/OTP versions
Erlang/OTP 26 [erts-14.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Elixir 1.15.6 (compiled with Erlang/OTP 26)
Operating system
Windows
Current behavior
Expected behavior
I expect it to work like string
The text was updated successfully, but these errors were encountered: