feat(cli): add DENO_V8_FLAGS env var (#17313)

Closes #5669
This commit is contained in:
Leo Kettmeir 2023-01-25 05:03:03 +01:00 committed by GitHub
parent 900929f65c
commit f3711f28f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 63 additions and 37 deletions

View file

@ -545,6 +545,7 @@ static ENV_VARIABLES_HELP: &str = r#"ENVIRONMENT VARIABLES:
(alternative to passing --no-prompt on invocation)
DENO_NO_UPDATE_CHECK Set to disable checking if a newer Deno version is
available
DENO_V8_FLAGS Set V8 command line options
DENO_WEBGPU_TRACE Directory to use for wgpu traces
DENO_JOBS Number of parallel workers used for the --parallel
flag with the test subcommand. Defaults to number
@ -2115,7 +2116,8 @@ fn v8_flags_arg<'a>() -> Arg<'a> {
.use_value_delimiter(true)
.require_equals(true)
.help("Set V8 command line options")
.long_help("To see a list of all available flags use --v8-flags=--help.")
.long_help("To see a list of all available flags use --v8-flags=--help.\
Any flags set with this flag are appended after the DENO_V8_FLAGS environmental variable")
}
fn seed_arg<'a>() -> Arg<'a> {