summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcomedyGenerator4
-rw-r--r--config6
2 files changed, 8 insertions, 2 deletions
diff --git a/comedyGenerator b/comedyGenerator
index e2acc2f..be847a5 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -25,7 +25,7 @@ parser.add_argument('--verbose', '-v',
)
parser.add_argument('--amount','-a',
- default=10,
+ default=int(config['DEFAULT']['amount']),
dest='amount',
action="store",
help="the amount of funnies you'd like to download per tag",
@@ -49,7 +49,7 @@ parser.add_argument('--log','-l',
)
parser.add_argument('--jobs','-j',
- default=1,
+ default=int(config['DEFAULT']['jobs']),
dest='jobs',
action="store",
help="how many jobs you'd like to use while downloading",
diff --git a/config b/config
index a41902d..aa8f078 100644
--- a/config
+++ b/config
@@ -6,3 +6,9 @@ output=./
#Location of the log file, if you care about that. False will disable the log file
log=False
+
+#Default amount of funnies to download
+amount=10
+
+#Default amount of jobs used when downloading
+jobs=1