aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
authorEmil Gardström <[email protected]>2020-10-20 21:37:02 +0100
committerEmil Gardström <[email protected]>2020-10-20 21:37:02 +0100
commitc5b1c36b2beeb68c2ede28e78a5aa7b8227a0d67 (patch)
tree54b7c82690f9cbee82b9d9636c0cd7d148d45f18 /xtask/src/main.rs
parentd0bb051ef7a2cfb4cc1d26e2cf981c4e345269e8 (diff)
rename flag --client-code to --client on xtask install
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 62124041d..536a67047 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -46,20 +46,20 @@ USAGE:
46 cargo xtask install [FLAGS] 46 cargo xtask install [FLAGS]
47 47
48FLAGS: 48FLAGS:
49 --client-code[=CLIENT] Install only VS Code plugin. 49 --client[=CLIENT] Install only VS Code plugin.
50 CLIENT is one of 'code', 'code-insiders', 'codium', or 'code-oss' 50 CLIENT is one of 'code', 'code-insiders', 'codium', or 'code-oss'
51 --server Install only the language server 51 --server Install only the language server
52 --mimalloc Use mimalloc for server 52 --mimalloc Use mimalloc for server
53 -h, --help Prints help information 53 -h, --help Prints help information
54 " 54 "
55 ); 55 );
56 return Ok(()); 56 return Ok(());
57 } 57 }
58 let server = args.contains("--server"); 58 let server = args.contains("--server");
59 let client_code = args.contains("--client-code"); 59 let client_code = args.contains("--client");
60 if server && client_code { 60 if server && client_code {
61 eprintln!( 61 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\
63 For more information try --help" 63 For more information try --help"
64 ); 64 );
65 return Ok(()); 65 return Ok(());
@@ -68,7 +68,7 @@ FLAGS:
68 let malloc = 68 let malloc =
69 if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System }; 69 if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System };
70 70
71 let client_opt = args.opt_value_from_str("--client-code")?; 71 let client_opt = args.opt_value_from_str("--client")?;
72 72
73 args.finish()?; 73 args.finish()?;
74 74