summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
commitea2410eeb18b495f71dfe6f0a941e5d65078c523 (patch)
tree75c3d78fbb08a1c127701e79bf3876511703efd8
parent5489d351439d32b5a432190b98bb97a8e8fde123 (diff)
downloadcomedyGenerator-ea2410eeb18b495f71dfe6f0a941e5d65078c523.tar.gz
comedyGenerator-ea2410eeb18b495f71dfe6f0a941e5d65078c523.tar.bz2
comedyGenerator-ea2410eeb18b495f71dfe6f0a941e5d65078c523.zip
expanded config options
-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