From 6b2da8fafef40a897eb3ba02f49c0d6e6fa14eb5 Mon Sep 17 00:00:00 2001 From: CorpNewt Date: Tue, 25 Sep 2018 23:29:07 -0500 Subject: [PATCH] Fixes for cli args --- gibMacOS.command | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/gibMacOS.command b/gibMacOS.command index 3c8ffed..3ad660f 100644 --- a/gibMacOS.command +++ b/gibMacOS.command @@ -228,23 +228,27 @@ class gibMacOS: self.download_prod(self.mac_prods[menu-1]) def get_latest(self): + self.u.head("Downloading Latest") + print("") self.download_prod(self.mac_prods[-1]) def get_for_product(self, prod): + self.u.head("Downloading for {}".format(prod)) + print("") for p in self.mac_prods: if p["product"] == prod: - self.download_prod(prod) + self.download_prod(p) return print("{} not found".format(prod)) def get_for_version(self, vers): - if str(vers).startswith("10."): - vers = str(vers)[3:] + self.u.head("Downloading for {}".format(vers)) + print("") for p in self.mac_prods: if p["version"] == vers: - self.download_prod(prod) + self.download_prod(p) return - print("{} not found".format(vers)) + print("10.{} not found".format(vers)) if __name__ == '__main__': parser = argparse.ArgumentParser() @@ -268,5 +272,7 @@ if __name__ == '__main__': g.get_for_version(args.version) exit() + print("main") + while True: g.main()