feat: added optional dryrun arg
This commit is contained in:
1 parent
e11e808613
commit
9bd20bf1ae
1 file changed
+2
-1
@@ -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)
|
||||
mlwerke2pdf.MLWerk(args.url).text2pdf(args.pdfpath, args.dryrun)
|
||||
Reference in new issue
Block a user