uv/crates/uv-cli/src
Charlie Marsh 40844048af
Remove `--upgrade`, `--no-upgrade`, and `--upgrade-package` from `uv tool upgrade` (#9318)
## Summary

`--upgrade` isn't useful, since it's the default. So it's now hidden,
but continues to warn if you enable it.

`--no-upgrade` isn't useful, since it panics. So it's now removed
entirely. This isn't breaking, since it already didn't work.

`--upgrade-package` actually _is_ useful, because it turns out it allows
things like: `uv tool upgrade babel --upgrade-package "babel<0.2.14"` to
constrain the upgrade.

I left this in place but hid it... I think we should provide a better
workflow for this, like `uv tool upgrade "babel<0.2.14"`? It's strange
to specify the package twice, and that `uv tool upgrade` has an
`--upgrade-package` flag.

Closes https://github.com/astral-sh/uv/issues/9317.
2024-11-21 09:35:57 -05:00
..
comma.rs Remove separate test files in favor of same-file `mod tests` (#9199) 2024-11-18 20:11:46 +00:00
compat.rs Add support for `pip list --outdated` (#8872) 2024-11-07 02:32:30 +00:00
lib.rs Remove `--upgrade`, `--no-upgrade`, and `--upgrade-package` from `uv tool upgrade` (#9318) 2024-11-21 09:35:57 -05:00
options.rs Respect `--index-url` in `uv pip list` (#8942) 2024-11-08 09:52:32 -05:00
version.rs Remove separate test files in favor of same-file `mod tests` (#9199) 2024-11-18 20:11:46 +00:00