Hi PyMOL Community,

I have a PyMOL script that I have written that starts with the following kind of format:

-----------------
from pymol import cmd
from re import *

def test (*args, **kwargs):

  var1=0
  sel=""

  for key in kwargs:
    if (key == "var1"):
      var1=int(kwargs["var1"])
    elif (key == "selection"):
      sel=kwargs["selection"]
    else:
      continue

  while (len(args)>=1):
    args.pop(0)

  return
cmd.extend("test", test)

----------------------


I've noticed that in this format the usage output (i.e. if I do "test ?") does not contain any valuable information:

test ?
Usage: test

Thus, I was hoping that there was an easy way that I can directly specify what the Usage output says.  I was hoping that it would say something like:

Usage: test [var1=0 [, selection=""]]

Any suggestions would be greatly appreciated.  Thanks.

Sean