-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Pytest options with more than one metavar don't have the correct help #2004
Comments
To give a little more context, pytest-selenium uses a command line option that appends values to a list, and expects two arguments. In the |
Thanks @davehunt and @okulynyak for the report. Not sure how easy it is to fix this though, pytest's argument parsing is quite complicated (I think). |
FWIW |
Hi. As for me, i vote for The-Compiler says: "IMHO the right thing to do here is just fixing the --help output to show --name value1 value2." |
Oh right sorry, TBH I just glanced at the issue before bed and thought we would have to change the parsing of the option. My bad. I agree, we should just update the help message. |
automated_test_scripts\tests>pytest -v -s --firefox-preference="browser.helperApps.neverAsk.openFile"="application/excel" test_login.py"
i got error:
usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: argument --firefox-preference: expected 2 argument(s).
I tried different combination and all the time i got the same error.
I using a synthax in command line from >pytest -h
Here is link for temporary resolve of this problem: pytest-dev/pytest-selenium#86 (comment)
Thanks for your time
The text was updated successfully, but these errors were encountered: