🐞 fix(preload): fix arg for sd.next

import `argparse` module to fix database init error in sd.next
pull/97/head
MakinoHaruka 2024-07-15 21:13:44 +08:00
parent ee49a4a433
commit c7daa976bd
No known key found for this signature in database
GPG Key ID: 39F856B2368E37BE
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,7 @@
def preload(parser):
import argparse
def preload(parser: argparse.ArgumentParser):
parser.add_argument("--mo-show-dir-settings", action='store_true', help="Enable models dir change in settings")
parser.add_argument("--mo-debug", action='store_true', help="Enable Model Organizer Debug Mode")
parser.add_argument("--mo-database-dir",type=str,help="Path to directory wiFth database",default=None,)
parser.add_argument("--mo-database-dir", type=str, help="Path to directory wiFth database", default=None)