mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 12:25:05 +00:00
rename flag --client-code to --client on xtask install
This commit is contained in:
parent
d0bb051ef7
commit
c5b1c36b2b
1 changed files with 8 additions and 8 deletions
|
@ -46,20 +46,20 @@ USAGE:
|
||||||
cargo xtask install [FLAGS]
|
cargo xtask install [FLAGS]
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
--client-code[=CLIENT] Install only VS Code plugin.
|
--client[=CLIENT] Install only VS Code plugin.
|
||||||
CLIENT is one of 'code', 'code-insiders', 'codium', or 'code-oss'
|
CLIENT is one of 'code', 'code-insiders', 'codium', or 'code-oss'
|
||||||
--server Install only the language server
|
--server Install only the language server
|
||||||
--mimalloc Use mimalloc for server
|
--mimalloc Use mimalloc for server
|
||||||
-h, --help Prints help information
|
-h, --help Prints help information
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
let server = args.contains("--server");
|
let server = args.contains("--server");
|
||||||
let client_code = args.contains("--client-code");
|
let client_code = args.contains("--client");
|
||||||
if server && client_code {
|
if server && client_code {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"error: The argument `--server` cannot be used with `--client-code`\n\n\
|
"error: The argument `--server` cannot be used with `--client`\n\n\
|
||||||
For more information try --help"
|
For more information try --help"
|
||||||
);
|
);
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
@ -68,7 +68,7 @@ FLAGS:
|
||||||
let malloc =
|
let malloc =
|
||||||
if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System };
|
if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System };
|
||||||
|
|
||||||
let client_opt = args.opt_value_from_str("--client-code")?;
|
let client_opt = args.opt_value_from_str("--client")?;
|
||||||
|
|
||||||
args.finish()?;
|
args.finish()?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue