mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-23 13:15:04 +00:00
hard error uv version
for more cli flags (#13203)
This commit is contained in:
parent
671d609127
commit
f91b4aeb66
1 changed files with 6 additions and 3 deletions
|
@ -1044,9 +1044,12 @@ async fn run(mut cli: Cli) -> Result<ExitStatus> {
|
|||
short,
|
||||
output_format,
|
||||
}) => {
|
||||
// If they specified a project, they probably don't want `uv --version` semantics
|
||||
let strict =
|
||||
cli.top_level.global_args.project.is_some() || globals.preview.is_enabled();
|
||||
// If they specified any of these flags, they probably don't mean `uv self version`
|
||||
let strict = cli.top_level.global_args.project.is_some()
|
||||
|| globals.preview.is_enabled()
|
||||
|| dry_run
|
||||
|| bump.is_some()
|
||||
|| value.is_some();
|
||||
commands::project_version(
|
||||
&project_dir,
|
||||
value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue