mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 10:33:49 +00:00
Unhide the --directory
option (#7653)
This commit is contained in:
parent
5da73a24cb
commit
0c6117f5da
3 changed files with 337 additions and 2 deletions
|
@ -234,7 +234,11 @@ pub struct GlobalArgs {
|
|||
pub no_progress: bool,
|
||||
|
||||
/// Change to the given directory prior to running the command.
|
||||
#[arg(global = true, long, hide = true)]
|
||||
///
|
||||
/// Relative paths are resolved with the given directory as the base.
|
||||
///
|
||||
/// See `--project` to only change the project root directory.
|
||||
#[arg(global = true, long)]
|
||||
pub directory: Option<PathBuf>,
|
||||
|
||||
/// Run the command within the given project directory.
|
||||
|
@ -246,6 +250,8 @@ pub struct GlobalArgs {
|
|||
/// Other command-line arguments (such as relative paths) will be resolved relative
|
||||
/// to the current working directory.
|
||||
///
|
||||
/// See `--directory` to change the working directory entirely.
|
||||
///
|
||||
/// This setting has no effect when used in the `uv pip` interface.
|
||||
#[arg(global = true, long)]
|
||||
pub project: Option<PathBuf>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue