We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fd269 commit a098e08Copy full SHA for a098e08
1 file changed
commands/console_write.py
@@ -51,9 +51,13 @@ def callback(self, data):
51
return
52
53
# run sampy commands
54
- if(data.startswith('sampy')):
+ if(data.startswith(('sampy', '--help'))):
55
data = data.split()
56
- cmd = data[1]
+ try:
57
+ cmd = data[1]
58
+ except IndexError:
59
+ cmd = data[0]
60
+
61
arg = data[2] if(len(data) > 2) else None
62
63
th = Thread(target=self.sampy_commands, args=(cmd, arg))
0 commit comments