Rev | Line | |
---|
[953] | 1 | # $Id: command.py 12290 2011-02-10 14:02:38Z pstorz $
|
---|
| 2 | class command(object):
|
---|
| 3 | '''
|
---|
| 4 | this class contains the information to a console command, also dot commands
|
---|
| 5 | '''
|
---|
| 6 | def __init__(self, commandtext, commandname, usage, help, inrunscript):
|
---|
| 7 | self.commandtext = commandtext
|
---|
| 8 | self.commandname = commandname
|
---|
| 9 | self.usage = usage
|
---|
| 10 | self.help = help
|
---|
| 11 | self.inrunscript = inrunscript
|
---|
| 12 |
|
---|
| 13 | def __repr__(self):
|
---|
| 14 | return "command('%s','%s','%s','%s','%s')" % (self.commandtext, self.commandname, self.usage, self.help, self.inrunscript)
|
---|
| 15 |
|
---|
| 16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.