Use pipeable.input_many.

This commit is contained in:
voussoir 2021-05-25 01:35:55 -07:00
parent 0f2dc36a6b
commit e696dfaf77
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -9,7 +9,7 @@ from voussoirkit import pipeable
from voussoirkit import winglob from voussoirkit import winglob
def touch_argparse(args): def touch_argparse(args):
patterns = [pattern for arg in args.patterns for pattern in pipeable.input(arg)] patterns = pipeable.input_many(args.patterns, skip_blank=True)
for pattern in patterns: for pattern in patterns:
filenames = winglob.glob(pattern) filenames = winglob.glob(pattern)