-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support for unary args #13
base: master
Are you sure you want to change the base?
Conversation
thanks! could you create a new test for unary_args, rather than how you added it to the existing -Corey |
Done, thanks a lot! Also, I have another small change I've been using in my particular context, where I want to control the |
thanks much. hmm.. so to add a unary arg, you have to pass it as a kwarg with a None value? (like my_arg=None). That's not very obvious (it took me a few mins to figure it out). At the least, we should update the README with some nice examples showing use of binary and unary args, so it's clear. You can add that to this PR if you'd like. (If that's not convenient, I can just merge as-is and write the examples myself sometime this week). One other thought.... couldn't we use *args for passing arbitrary unary args? would something like this work as a signature:
then you could for example, initialize the Xvfb object like:
|
Rethinking about it, I now totally agree that using an argument with a I find your idea of using So I vote for your |
@cgoldberg actually I also had problem with argument that does not use "-",
For now you only support first ones. And altough it's easy to overcome it via:
It's kinda hacky and not documented |
I also need this to add the GLX extension, e.g. |
Can someone suggest how to properly supply extensions using this? Right now I have this, but I can't seem to add in
I still get the randr missing warning. |
This adds support for Xvfb arguments which do not have values (e.g.
-noreset
).