mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-09 02:55:12 -05:00
fix error with -o
This commit is contained in:
5
s3s.py
5
s3s.py
@@ -1284,7 +1284,7 @@ def main():
|
||||
print("That doesn't make any sense! :) Exiting.")
|
||||
sys.exit(0)
|
||||
|
||||
elif outfile and len(sys.argv) > 2:
|
||||
elif outfile and len(sys.argv) > 2 and "--skipprefetch" not in sys.argv:
|
||||
print("Cannot use -o with other arguments. Exiting.")
|
||||
sys.exit(0)
|
||||
|
||||
@@ -1305,7 +1305,8 @@ def main():
|
||||
# export results to file: -o flag
|
||||
#################################
|
||||
if outfile:
|
||||
prefetch_checks(printout=True, skipprefetch=skipprefetch)
|
||||
if not skipprefetch:
|
||||
prefetch_checks(printout=True)
|
||||
print("Fetching your JSON files to export locally. This might take a while...")
|
||||
# fetch_json() calls prefetch_checks() to gen or check tokens
|
||||
parents, results, coop_results = fetch_json("both", separate=True, exportall=True, specific=True, skipprefetch=True)
|
||||
|
||||
Reference in New Issue
Block a user