diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index a1e65bbc96bc..36b114b64e4f 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -148,7 +148,7 @@ pub struct GlobalArgs { /// Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any /// parent directories. - #[arg(global = true, long, hide = true)] + #[arg(global = true, long)] pub isolated: bool, /// Show the resolved settings for the current command. diff --git a/crates/uv/tests/help.rs b/crates/uv/tests/help.rs index 1b43cb9d6c9d..a42f7c7e95cb 100644 --- a/crates/uv/tests/help.rs +++ b/crates/uv/tests/help.rs @@ -42,6 +42,9 @@ fn help() { --python-fetch Whether to automatically download Python when required [possible values: automatic, manual] + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories -n, --no-cache Avoid reading from or writing to the cache [env: UV_NO_CACHE=] --cache-dir [CACHE_DIR] @@ -98,6 +101,9 @@ fn help_flag() { --python-fetch Whether to automatically download Python when required [possible values: automatic, manual] + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories -n, --no-cache Avoid reading from or writing to the cache [env: UV_NO_CACHE=] --cache-dir [CACHE_DIR] @@ -153,6 +159,9 @@ fn help_short_flag() { --python-fetch Whether to automatically download Python when required [possible values: automatic, manual] + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories -n, --no-cache Avoid reading from or writing to the cache [env: UV_NO_CACHE=] --cache-dir [CACHE_DIR] @@ -249,6 +258,10 @@ fn help_subcommand() { - manual: Do not automatically fetch managed Python installations; require explicit installation + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories + -n, --no-cache Avoid reading from or writing to the cache @@ -362,6 +375,10 @@ fn help_subsubcommand() { - manual: Do not automatically fetch managed Python installations; require explicit installation + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories + -n, --no-cache Avoid reading from or writing to the cache @@ -429,6 +446,9 @@ fn help_flag_subcommand() { --python-fetch Whether to automatically download Python when required [possible values: automatic, manual] + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories -n, --no-cache Avoid reading from or writing to the cache [env: UV_NO_CACHE=] --cache-dir [CACHE_DIR] @@ -481,6 +501,9 @@ fn help_flag_subsubcommand() { --python-fetch Whether to automatically download Python when required [possible values: automatic, manual] + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories -n, --no-cache Avoid reading from or writing to the cache [env: UV_NO_CACHE=] --cache-dir [CACHE_DIR] @@ -590,6 +613,9 @@ fn help_with_global_option() { --python-fetch Whether to automatically download Python when required [possible values: automatic, manual] + --isolated + Avoid discovering a `pyproject.toml` or `uv.toml` file in the current directory or any + parent directories -n, --no-cache Avoid reading from or writing to the cache [env: UV_NO_CACHE=] --cache-dir [CACHE_DIR]