mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Create object
This commit is contained in:
parent
6f468db98f
commit
028a641c12
1 changed files with 4 additions and 3 deletions
|
@ -658,15 +658,16 @@ class ArgParse(object):
|
||||||
"edit",
|
"edit",
|
||||||
"reset"
|
"reset"
|
||||||
]
|
]
|
||||||
|
conf = Config()
|
||||||
if (len(self.args) == 2 and self.args[0] in options and
|
if (len(self.args) == 2 and self.args[0] in options and
|
||||||
self.args[1] == command[1]):
|
self.args[1] == command[1]):
|
||||||
Config().edit()
|
conf.edit()
|
||||||
elif (len(self.args) == 2 and self.args[0] in options and
|
elif (len(self.args) == 2 and self.args[0] in options and
|
||||||
self.args[1] == (command[0])):
|
self.args[1] == (command[0])):
|
||||||
Config().view()
|
conf.view()
|
||||||
elif (len(self.args) == 2 and self.args[0] in options and
|
elif (len(self.args) == 2 and self.args[0] in options and
|
||||||
self.args[1] == (command[2])):
|
self.args[1] == (command[2])):
|
||||||
Config().reset()
|
conf.reset()
|
||||||
else:
|
else:
|
||||||
usage("")
|
usage("")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue