Skip to content

Commit c5b1c36

Browse files
committed
rename flag --client-code to --client on xtask install
1 parent d0bb051 commit c5b1c36

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

xtask/src/main.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ USAGE:
4646
cargo xtask install [FLAGS]
4747
4848
FLAGS:
49-
--client-code[=CLIENT] Install only VS Code plugin.
50-
CLIENT is one of 'code', 'code-insiders', 'codium', or 'code-oss'
51-
--server Install only the language server
52-
--mimalloc Use mimalloc for server
53-
-h, --help Prints help information
49+
--client[=CLIENT] Install only VS Code plugin.
50+
CLIENT is one of 'code', 'code-insiders', 'codium', or 'code-oss'
51+
--server Install only the language server
52+
--mimalloc Use mimalloc for server
53+
-h, --help Prints help information
5454
"
5555
);
5656
return Ok(());
5757
}
5858
let server = args.contains("--server");
59-
let client_code = args.contains("--client-code");
59+
let client_code = args.contains("--client");
6060
if server && client_code {
6161
eprintln!(
62-
"error: The argument `--server` cannot be used with `--client-code`\n\n\
62+
"error: The argument `--server` cannot be used with `--client`\n\n\
6363
For more information try --help"
6464
);
6565
return Ok(());
@@ -68,7 +68,7 @@ FLAGS:
6868
let malloc =
6969
if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System };
7070

71-
let client_opt = args.opt_value_from_str("--client-code")?;
71+
let client_opt = args.opt_value_from_str("--client")?;
7272

7373
args.finish()?;
7474

0 commit comments

Comments
 (0)