mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Added missing usage text and exit on Scripts
This commit is contained in:
parent
6f94974595
commit
95c818b643
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue
Block a user