Skip to content

Commit

Permalink
Merge pull request #1904 from radarhere/args
Browse files Browse the repository at this point in the history
Scripts with an incorrect number of arguments
  • Loading branch information
hugovk committed May 21, 2016
2 parents 5ff9134 + 95c818b commit 55c2073
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Scripts/enhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def update(self, value):
#
# main

if len(sys.argv) != 2:
print("Usage: enhancer file")
sys.exit(1)

root = Tk()

im = Image.open(sys.argv[1])
Expand Down
4 changes: 2 additions & 2 deletions Scripts/painter.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ def repair(self, box):
#
# 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":
Expand Down
4 changes: 4 additions & 0 deletions Scripts/thresholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def redraw(self, event=None):
# --------------------------------------------------------------------
# main

if len(sys.argv) != 2:
print("Usage: thresholder file")
sys.exit(1)

root = Tk()

im = Image.open(sys.argv[1])
Expand Down

0 comments on commit 55c2073

Please sign in to comment.