simplified -d opt a bit

This commit is contained in:
Christopher Roy Bratusek 2012-11-19 23:48:18 +01:00
parent 90418591a4
commit cf6cb46fa2

View File

@ -46,12 +46,12 @@ def main():
sys.exit(0)
if options.download:
if "IOS" in str(args[0]):
xarg = TitleDict[str(args[0])]
nusdow = nusDownloadingCLI(int(str(xarg).lower(),16), args[1], args[2], args[3], args[4])
if "IOS" in str(options.download[0]):
xarg = TitleDict[str(options.download[0])]
nusdow = nusDownloadingCLI(int(str(xarg).lower(),16), args[0], args[1], args[2], args[3])
else:
nusdow = nusDownloadingCLI(int(str(args[0]).lower(),16), args[1], args[2], args[3], args[4])
nusdow = nusDownloadingCLI(int(str(options.download[0]).lower(),16), args[0], args[1], args[2], args[3])
nusdow.start()
sys.exit(0)
@ -73,7 +73,6 @@ def main():
print "%s == %s" % (str(args[0]), xarg)
sys.exit(0)
os.chdir(os.getenv("HOME"))
translator = QTranslator()
translator.load(QString("i18n/Qwad_%1").arg(QLocale.system().name()))