-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: criticalgrave problem or usability issue that affects lots of usersgrave problem or usability issue that affects lots of usersstatus: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogmight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressedproblem that needs to be addressed
Description
I created an option with parser.addoption("--run")
Using this option worked find with the command line
py.test --run argument
However using the alternative syntax
py.test --run=argument
Caused the failure py.test: error: argument --runxfail: ignored explicit argument 'abc'
. I assume that the option matching is using prefixes. I think the behaviour of runxfail being triggered by --run is fine, however the behaviour should be consistent between the two ways of specifying command line options.
Metadata
Metadata
Assignees
Labels
status: criticalgrave problem or usability issue that affects lots of usersgrave problem or usability issue that affects lots of usersstatus: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogmight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressedproblem that needs to be addressed