diff --git a/mlwerke2pdf_shutil.py b/mlwerke2pdf_shutil.py index fb7a7c8..d347cc0 100644 --- a/mlwerke2pdf_shutil.py +++ b/mlwerke2pdf_shutil.py @@ -7,7 +7,8 @@ parser = argparse.ArgumentParser( epilog='published under GPL-3 at https://git.roteserver.de/humorhenker/mlwerke2pdf') parser.add_argument('-u', '--url', dest='url', help='base / table of contents of a text like http://www.mlwerke.de/me/me04/me04_459.htm', required=True) parser.add_argument('-o', '--pdfpath', dest='pdfpath', help='path for the output pdf', required=True) +parser.add_argument('--dry', dest='dryrun', default=False, help="dont store any files just dry fetch") args = parser.parse_args() -mlwerke2pdf.MLWerk(args.url).text2pdf(args.pdfpath) \ No newline at end of file +mlwerke2pdf.MLWerk(args.url).text2pdf(args.pdfpath, args.dryrun) \ No newline at end of file