mirror of
https://github.com/himanshugoel2797/MisskeyBooruImageBot.git
synced 2024-10-22 21:49:06 +00:00
Exit after generating dummy config if none found
This commit is contained in:
parent
54b33d98ee
commit
161978a69d
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ def main():
|
|||
|
||||
if not os.path.exists("config.json"):
|
||||
generate_config(defaults)
|
||||
sys.exit(0)
|
||||
|
||||
# If first argument is '--gen-config', generate config.json:
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "--gen-config":
|
||||
|
|
Loading…
Reference in a new issue