Skip to content

Commit 322f7b0

Browse files
authored
Rpatel/force update cleanup (#1263)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent af881e4 commit 322f7b0

File tree

1 file changed

+1
-3
lines changed
  • src/codegen/cli/commands/update

1 file changed

+1
-3
lines changed

src/codegen/cli/commands/update/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def update(
3939
list_: bool = typer.Option(False, "--list", "-l", help="List all supported versions"),
4040
version: str | None = typer.Option(None, "--version", "-v", help="Update to a specific version"),
4141
check: bool = typer.Option(False, "--check", help="Check for available updates without installing"),
42-
dry_run: bool = typer.Option(False, "--dry-run", help="Show what would be updated without making changes"),
43-
force: bool = typer.Option(False, "--force", "-f", help="Force update check even if recently checked"),
4442
legacy: bool = typer.Option(False, "--legacy", help="Use legacy update method (simple pip upgrade)"),
4543
):
4644
"""Update Codegen CLI to the latest or specified version.
@@ -61,7 +59,7 @@ def update(
6159

6260
# Handle different actions
6361
if check or list_:
64-
result = manager.check_for_updates(force=force)
62+
result = manager.check_for_updates(force=True)
6563

6664
if result.update_available:
6765
console.print(f"\n[cyan]Update available: {result.current_version}{result.latest_version}[/cyan]")

0 commit comments

Comments
 (0)