mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +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",
|
||||
"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("")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue