Skip to content

Commit 796395f

Browse files
committed
Rename param to --file
1 parent dd63956 commit 796395f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: scripts/squash-images.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
# pip install pillow
55
if [ ! -z $1 ]
66
then
7-
python3 scripts/thumbnail-images.py --inspec $1
7+
python3 scripts/thumbnail-images.py --file $1
88
else
99
python3 scripts/thumbnail-images.py
1010
fi

Diff for: scripts/thumbnail-images.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
description="Thumbnail images to a maximum size",
1515
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
1616
)
17-
parser.add_argument("--inspec", default="assets/*.png", help="Input file specification")
17+
parser.add_argument("--file", default="assets/*.png", help="Input file specification")
1818
args = parser.parse_args()
1919

20-
for infile in glob.glob("assets/*.png"):
20+
for infile in glob.glob(args.file):
2121
im = Image.open(infile)
2222
if im.width <= max_size[0] and im.height <= max_size[1]:
2323
continue

0 commit comments

Comments
 (0)