Skip to content

Commit

Permalink
fix cli parser argv, resolve #142
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Aug 17, 2024
1 parent f6fded3 commit 382ccb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions meme_generator/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
import sys
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -169,7 +168,7 @@ def generate_meme(
def main():
setup_logger()
parser = construct_parser()
result = parser.parse(["meme"] + sys.argv[1:])
result = parser()

if not result.matched:
if not isinstance(result.error_info, SpecialOptionTriggered):
Expand Down

0 comments on commit 382ccb8

Please sign in to comment.