Skip to content

Commit 5f47c67

Browse files
committed
fix(cli): keep normalize_args doc off apply_chdir
The helper was inserted between normalize_args's bullet-list doc comment and the function, merging the docs; clippy reads the helper's prose as unindented list continuations under --deny warnings.
1 parent bf8a5b6 commit 5f47c67

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

crates/vite_global_cli/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ pub(crate) fn parse_leading_chdir(user_args: &[String]) -> Option<(String, usize
5757
None
5858
}
5959

60-
/// Normalize CLI arguments:
61-
/// - `vp list ...` / `vp ls ...` → `vp pm list ...`
62-
/// - `vp rebuild ...` → `vp pm rebuild ...`
63-
/// - `vp help [command] [args...]` → `vp [command] [args...] --help`
64-
/// - `vp node [args...]` → `vp env exec node [args...]`
6560
/// Apply `-C <dir>`: resolve against `cwd`, validate, change the process
6661
/// cwd, and keep the POSIX `PWD` in sync like a real `cd`. Returns the new
6762
/// cwd, or the user-facing error message (not printed here: the completion
@@ -86,6 +81,11 @@ pub(crate) fn apply_chdir(
8681
Ok(target)
8782
}
8883

84+
/// Normalize CLI arguments:
85+
/// - `vp list ...` / `vp ls ...` → `vp pm list ...`
86+
/// - `vp rebuild ...` → `vp pm rebuild ...`
87+
/// - `vp help [command] [args...]` → `vp [command] [args...] --help`
88+
/// - `vp node [args...]` → `vp env exec node [args...]`
8989
fn normalize_args(args: Vec<String>) -> Vec<String> {
9090
let mut normalized = args;
9191
loop {

0 commit comments

Comments
 (0)