Added missing usage text and exit on Scripts

This commit is contained in:
Andrew Murray 2016-05-11 00:35:37 +10:00
parent 6f94974595
commit 95c818b643
2 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,10 @@ class Enhance(Frame):
#
# main
if len(sys.argv) != 2:
print("Usage: enhancer file")
sys.exit(1)
root = Tk()
im = Image.open(sys.argv[1])

View File

@ -60,6 +60,10 @@ class UI(Frame):
# --------------------------------------------------------------------
# main
if len(sys.argv) != 2:
print("Usage: thresholder file")
sys.exit(1)
root = Tk()
im = Image.open(sys.argv[1])