Skip to content

Commit

Permalink
fix: sub command
Browse files Browse the repository at this point in the history
  • Loading branch information
FlickerSoul committed Nov 13, 2023
1 parent e15bc69 commit c9fb70b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/gapper/cli/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def url(
help="The path to the autograder zip file.",
),
],
assignment_url: Annotated[
Optional[str], typer.Argument(help="The url to the autograder.")
],
login_save_path: LoginSavePath = DEFAULT_LOGIN_SAVE_PATH,
ui_debug: UIDebugOpt = False,
assignment_url: Annotated[
Optional[str], typer.Option("--url", "-u", help="The url to the autograder.")
] = None,
) -> None:
"""Upload an autograder to Gradescope using the assignment url."""
add_debug_to_app(ui_debug)
Expand All @@ -67,12 +67,8 @@ def ids(
],
login_save_path: LoginSavePath = DEFAULT_LOGIN_SAVE_PATH,
ui_debug: UIDebugOpt = False,
cid: Annotated[
Optional[str], typer.Option("--cid", "-c", help="The course id.")
] = None,
aid: Annotated[
Optional[str], typer.Option("--aid", "-a", help="The assignment id.")
] = None,
cid: Annotated[Optional[str], typer.Argument(help="The course id.")] = None,
aid: Annotated[Optional[str], typer.Argument(help="The assignment id.")] = None,
) -> None:
"""Upload an autograder to Gradescope using the cid and aid."""
add_debug_to_app(ui_debug)
Expand Down

0 comments on commit c9fb70b

Please sign in to comment.