dont default to stdin to read files as one cannot seek in stdin
This commit is contained in:
parent
69ff6e7961
commit
e1b3710c74
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None,
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description='lossless conversion/embedding of images (in)to pdf')
|
parser = argparse.ArgumentParser(description='lossless conversion/embedding of images (in)to pdf')
|
||||||
parser.add_argument('images', metavar='infile', type=argparse.FileType('r'),
|
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'),
|
parser.add_argument('-o', '--output', metavar='out', type=argparse.FileType('w'),
|
||||||
default=sys.stdout, help='output file (default: stdout)')
|
default=sys.stdout, help='output file (default: stdout)')
|
||||||
def positive_float(string):
|
def positive_float(string):
|
||||||
|
|
Loading…
Reference in a new issue