update arguments

This commit is contained in:
Dimitris Zlatanidis 2014-11-08 04:11:14 +02:00
parent 9b6949499f
commit cfa02b5778

View file

@ -59,6 +59,13 @@ class case(object):
def rlwinstall(self):
OthersInstall(self.package, "rlw", "").start()
def alieninstall(self):
OthersInstall(self.package, "alien", "").start()
def slackyinstall(self):
OthersInstall(self.package, "slacky", "").start()
def main():
# root privileges required
@ -107,25 +114,17 @@ def main():
else:
usage()
elif len(args) == 3 and args[0] == "-s":
if args[1] in repository:
install = {
"sbo": case(args[2]).sboinstall,
"slack": case(args[2]).slackinstall,
"rlw": case(args[2]).rlwinstall
"rlw": case(args[2]).rlwinstall,
"alien": case(args[2]).alieninstall,
"slacky": case(args[2]).slackyinstall
}
install[args[1]]()
'''if args[1] == repository[0]:
SBoInstall(args[2]).start()
elif args[1] == repository[1]:
Slack(args[2], "stable").start()
elif args[1] == repository[2]:
OthersInstall(args[2], repository[2], "").start()
elif args[1] == repository[3]:
OthersInstall(args[2], repository[3], "").start()
elif args[1] == repository[4]:
OthersInstall(args[2], repository[4], "").start()
else:
usage()'''
usage()
elif len(args) == 4 and args[0] == "-s":
if args[1] == repository[1] and args[3] == "--current":
Slack(args[2], "current").start()