From 277fc44ab0e0e38fe2d5bdc5572bc5b8a695ef0e Mon Sep 17 00:00:00 2001 From: Alice Date: Sun, 19 Nov 2017 19:42:20 +0100 Subject: [PATCH] Added default imgs folder for wiki download --- imposition.py | 2 +- wiki-download.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imposition.py b/imposition.py index f4b8db7..c6528cd 100755 --- a/imposition.py +++ b/imposition.py @@ -9,7 +9,7 @@ from random import shuffle # TODO: add example to description #### p = ArgumentParser(description='Script converts 8 images (jpg or png) from a given directory into a single page 4x2 imposition. Example: python imposition.py --dir imgs/ --size a3 --order random ') -p.add_argument("--dir", metavar='', default='', required=True, help="Image directory, which stores the source images for the imposition") +p.add_argument("--dir", metavar='', default='imgs', required=True, help="Image directory, which stores the source images for the imposition") p.add_argument("--size", metavar='', default="A4", choices=['A4','a4','A3','a3'], help="Size of the printing sheet: A4 or A3. Default:A4") p.add_argument("--pages", metavar='', type=int, choices=[1,2], default=1, help="Number of imposition pages. Default:1. Currently only 1 or 2 pages impositions are available.") p.add_argument("--order", metavar='', default="alphabet", choices=["alphabet", "reverse", "random"], help="Image distribution Order in the imposition. Possible Values: alphabet (alphabetically) , reverse (reverse alphabetically), random. Default: alphabet") diff --git a/wiki-download.py b/wiki-download.py index 1f45c29..c5423ec 100755 --- a/wiki-download.py +++ b/wiki-download.py @@ -23,7 +23,7 @@ python wiki-download.py -d imgs -a [[Year::2007]][[Document_Type::Poster]]""", f p.add_argument("--host", metavar='', default="aa.xpub.nl") p.add_argument("--path", metavar='', default="/", help="Wiki path. Should end with /") p.add_argument("--ask", "-a", metavar='', default="", help="Ask query to be sent to the wiki API.") -p.add_argument("--download", "-d", metavar='', default='', help="Local directory to store files from wiki. If no directory provided files wont be downloaded") +p.add_argument("--download", "-d", metavar='', default='imgs', help="Local directory to store files from wiki. If no directory provided files wont be downloaded") p.add_argument("--verbose", "-v", action='store_true', help="Increase verbosity. If not given no files will be downloaded") args = p.parse_args()