Skip to content

Commit

Permalink
Update datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonsnake committed Jan 15, 2012
1 parent 4a5a8ba commit 3995707
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/datatypes.py
Expand Up @@ -92,7 +92,7 @@ def __init__(self, s):
[command], [ctgry], [query], [thing], [args(list)] are verbose.
"""
self.command = s.strip()[1:-1].split(" ")
self.command = s.strip()[1:-1].lower().split(" ")
self.ctgry = self.ctg()
self.query = self.qry()
self.thing = self.thi()
Expand Down Expand Up @@ -120,14 +120,14 @@ def ctg(self):

def qry(self):
if len(self.command) > 1:
return self.command[1]
return self.command[1]
else:
return ''

def arg(self):
a = []
if len(self.command) > 2:
for x in self.command[2:]:
for x in self.command.split(" ")[2:]:
if x.startswith("-"):
a.append(x)
return a

0 comments on commit 3995707

Please sign in to comment.