Create object

This commit is contained in:
Dimitris Zlatanidis 2016-01-05 08:18:07 +02:00
parent 6f468db98f
commit 028a641c12

View file

@ -658,15 +658,16 @@ class ArgParse(object):
"edit",
"reset"
]
conf = Config()
if (len(self.args) == 2 and self.args[0] in options and
self.args[1] == command[1]):
Config().edit()
conf.edit()
elif (len(self.args) == 2 and self.args[0] in options and
self.args[1] == (command[0])):
Config().view()
conf.view()
elif (len(self.args) == 2 and self.args[0] in options and
self.args[1] == (command[2])):
Config().reset()
conf.reset()
else:
usage("")