Fix grayscale_argparse returning on first item.

This commit is contained in:
voussoir 2021-01-13 17:30:35 -08:00
parent 0c78d7f96c
commit ab54a750d0

View file

@ -26,7 +26,7 @@ def grayscale(filename, *, inplace=False):
def grayscale_argparse(args): def grayscale_argparse(args):
filenames = winglob.glob(args.pattern) filenames = winglob.glob(args.pattern)
for filename in filenames: for filename in filenames:
return grayscale(filename, inplace=args.inplace) grayscale(filename, inplace=args.inplace)
def main(argv): def main(argv):
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)