Hi Sean,
the usage message is generated by introspection, so with your implicit
arguments declaration it's not possible to get an informative usage
message. But you can add a docstring which will be displayed with "help
test" instead of "test ?".
def test(*args, **kwargs):
'''
DESCRIPTION
Hi Sean,
The pymol syntax for getting help on a command is "help command". I
think it is a wrapper around the python help function, for which the
syntax is "help(command)". In your case, it would only show something
like:
test(*args,**kwargs)
You can write a docstring, e.g. similar to the ones i
Hi PyMOL Community,
I have a PyMOL script that I have written that starts with the following kind
of format:
-from pymol import cmdfrom re import *
def test (*args, **kwargs):
var1=0 sel=""
for key in kwargs:if (key == "var1"): var1=int(kwargs["var1"])
elif (key