Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/codegen/cli/commands/update/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def update(
list_: bool = typer.Option(False, "--list", "-l", help="List all supported versions"),
version: str | None = typer.Option(None, "--version", "-v", help="Update to a specific version"),
check: bool = typer.Option(False, "--check", help="Check for available updates without installing"),
dry_run: bool = typer.Option(False, "--dry-run", help="Show what would be updated without making changes"),
force: bool = typer.Option(False, "--force", "-f", help="Force update check even if recently checked"),
legacy: bool = typer.Option(False, "--legacy", help="Use legacy update method (simple pip upgrade)"),
):
"""Update Codegen CLI to the latest or specified version.
Expand All @@ -61,7 +59,7 @@ def update(

# Handle different actions
if check or list_:
result = manager.check_for_updates(force=force)
result = manager.check_for_updates(force=True)

if result.update_available:
console.print(f"\n[cyan]Update available: {result.current_version} → {result.latest_version}[/cyan]")
Expand Down
Loading