D
Dipl. -Ing. Ashu Akoachere
Has any one got experience in using the built-in cmd class? I have derived a subclass from the base class, but it seems as if the arguments of functions using the cmd-interpreter are limited in their number. Precisely' I have something like this:
..
..def help_add(self):
print "Adds arguments"
def do_add(self,arg1,arg2):
return (arg1 + arg2)
Python complains about the number of arguments in the do_add function. Has anyone got a modified cmd that can handle multiple arguments?
Ashu
..
..def help_add(self):
print "Adds arguments"
def do_add(self,arg1,arg2):
return (arg1 + arg2)
Python complains about the number of arguments in the do_add function. Has anyone got a modified cmd that can handle multiple arguments?
Ashu