cli: allow reading exec server token from env variable (#200079)

This commit is contained in:
Connor Peet
2023-12-05 12:38:10 -08:00
committed by GitHub
parent 88defdf993
commit cc62bd1ddd

View File

@@ -223,7 +223,7 @@ pub struct CommandShellArgs {
#[clap(long, num_args = 0..=1, default_missing_value = "0")]
pub on_port: Option<u16>,
/// Require the given token string to be given in the handshake.
#[clap(long)]
#[clap(long, env = "VSCODE_CLI_REQUIRE_TOKEN")]
pub require_token: Option<String>,
/// Optional parent process id. If provided, the server will be stopped when the process of the given pid no longer exists
#[clap(long, hide = true)]