Adding custom command line args not working #11035
Answered
by
RonnyPfannschmidt
Thundercleez
asked this question in
Q&A
-
I have my conftest.py as
Then I have another file foo.py
Then at the command line I run
Even if I set the default in the addoption to False, the print out always prints True. Why is this not working? Of course, I've tried
as well |
Beta Was this translation helpful? Give feedback.
Answered by
RonnyPfannschmidt
May 25, 2023
Replies: 1 comment
-
As per the docs on the type arg bool ist discouraged as type since bool Just Checks for truthyness If you want a flag i recommend the Store true Action |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Thundercleez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As per the docs on the type arg bool ist discouraged as type since bool Just Checks for truthyness
If you want a flag i recommend the Store true Action