From e1b3710c74aa04ff5d177ebfd21475d58f8ebc58 Mon Sep 17 00:00:00 2001 From: josch Date: Thu, 29 Mar 2012 12:35:39 +0200 Subject: [PATCH] dont default to stdin to read files as one cannot seek in stdin --- img2pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/img2pdf.py b/img2pdf.py index 6aa2f4c..cddcb00 100644 --- a/img2pdf.py +++ b/img2pdf.py @@ -197,7 +197,7 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None, if __name__ == "__main__": parser = argparse.ArgumentParser(description='lossless conversion/embedding of images (in)to pdf') parser.add_argument('images', metavar='infile', type=argparse.FileType('r'), - nargs='*', default=[sys.stdin], help='input file(s) (default: stdin)') + nargs='+', help='input file(s)') parser.add_argument('-o', '--output', metavar='out', type=argparse.FileType('w'), default=sys.stdout, help='output file (default: stdout)') def positive_float(string):