Hello, I'm working on a custom (private) plugin vary tailored to our product. The plugin adapts its feature set based on the abilities of the internal server it connects to. I was thinking of implementing an option in my plugin, e.g. `--show-our-superduper-help`. This could go out to the server, fetch it's config and print the abilities which can be used in the test suite for that server.
I looked at how the regular `--help` is implemented: https://github.com/pytest-dev/pytest/blob/71a7b3c062d51c61ee8b1ac479b1260d541918c6/_pytest/helpconfig.py#L46-L47 It uses the HelpAction which raises a PrintHelp exception to shortcut on running the test suite. Not really fond of implementing something similar. How could I get a similar behaviour for only printing the (server specific) config of my plugin? Thanks, *Ringo De Smet* ringo.de.s...@ontoforce.com
_______________________________________________ pytest-dev mailing list firstname.lastname@example.org https://mail.python.org/mailman/listinfo/pytest-dev