Skip to content

Commit

Permalink
Format 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Dec 16, 2023
1 parent 89cc3a8 commit de15c67
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions alist_sync/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@
app = Typer()

_base_url: str = Option(
'http://localhost:5244', '--host', '-h',
'http://localhost:5244',
'--host', '-h',
help="Base URL for Alist Host",

)

_username: str = Option(
'', "--username", "-u",
'',
"--username", "-u",
help="Alist Admin Username"
)

Expand All @@ -36,7 +39,8 @@
)

_verify: bool = Option(
True, "--verify", "-v",
False, "--verify", "-v",
# is_flag=True,
help="Verify SSL Certificates"
)

Expand Down Expand Up @@ -185,11 +189,10 @@ def sync_incr(


if __name__ == '__main__':
# logging.basicConfig(level='INFO')
from rich.logging import RichHandler
logger = logging.getLogger('alist-sync')
hander = logging.StreamHandler()
hander.setLevel("DEBUG")
# hander.setFormatter("")
logger.addHandler(hander)
handler = RichHandler()
handler.setLevel("DEBUG")
logger.addHandler(handler)
logger.setLevel("DEBUG")
app()

0 comments on commit de15c67

Please sign in to comment.