mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Merge pull request #1904 from radarhere/args
Scripts with an incorrect number of arguments
This commit is contained in:
commit
55c20731d1
|
@ -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])
|
||||
|
|
|
@ -66,12 +66,12 @@ class PaintCanvas(Canvas):
|
|||
#
|
||||
# main
|
||||
|
||||
root = Tk()
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: painter file")
|
||||
sys.exit(1)
|
||||
|
||||
root = Tk()
|
||||
|
||||
im = Image.open(sys.argv[1])
|
||||
|
||||
if im.mode != "RGB":
|
||||
|
|
|
@ -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