I have a class like this one
import sys
class ACommand(object):
@classmethod
def cmd(cls, argv=sys.argv):
" Executes the command. "
pass
When documenting this with Sphinx it expands sys.argv
to its current value, producing something like the following signature
classmethod cmd(argv=['/path/to/sphinx-build', '-b', 'html', '-d', '_build/doctrees', '.', '_build/html'])
I find it more convenient to have sys.argv
in the documentation than its expansion. How can I achieve this?