mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
cli: unify deno -h options (#2682)
This commit is contained in:
parent
b7026816b6
commit
3ae808986d
2 changed files with 11 additions and 12 deletions
|
@ -116,7 +116,7 @@ Examples: https://github.com/WICG/import-maps#the-import-map",
|
||||||
pub fn create_cli_app<'a, 'b>() -> App<'a, 'b> {
|
pub fn create_cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||||
add_run_args(App::new("deno"))
|
add_run_args(App::new("deno"))
|
||||||
.bin_name("deno")
|
.bin_name("deno")
|
||||||
.global_settings(&[AppSettings::ColorNever])
|
.global_settings(&[AppSettings::ColorNever, AppSettings::UnifiedHelpMessage])
|
||||||
.settings(&[AppSettings::DisableVersion, AppSettings::AllowExternalSubcommands])
|
.settings(&[AppSettings::DisableVersion, AppSettings::AllowExternalSubcommands])
|
||||||
.after_help(ENV_VARIABLES_HELP)
|
.after_help(ENV_VARIABLES_HELP)
|
||||||
.long_about("A secure runtime for JavaScript and TypeScript built with V8, Rust, and Tokio.
|
.long_about("A secure runtime for JavaScript and TypeScript built with V8, Rust, and Tokio.
|
||||||
|
|
|
@ -599,27 +599,26 @@ Use `deno help` to see the help text.
|
||||||
|
|
||||||
```
|
```
|
||||||
USAGE:
|
USAGE:
|
||||||
deno [FLAGS] [OPTIONS] [SUBCOMMAND]
|
deno [OPTIONS] [SUBCOMMAND]
|
||||||
|
|
||||||
FLAGS:
|
|
||||||
-A, --allow-all Allow all permissions
|
|
||||||
--allow-env Allow environment access
|
|
||||||
--allow-hrtime Allow high resolution time measurement
|
|
||||||
--allow-run Allow running subprocesses
|
|
||||||
-h, --help Prints help information
|
|
||||||
--no-prompt Do not use prompts
|
|
||||||
-r, --reload Reload source code cache (recompile TypeScript)
|
|
||||||
--v8-options Print V8 command line options
|
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
|
-A, --allow-all Allow all permissions
|
||||||
|
--allow-env Allow environment access
|
||||||
|
--allow-hrtime Allow high resolution time measurement
|
||||||
--allow-net=<allow-net> Allow network access
|
--allow-net=<allow-net> Allow network access
|
||||||
--allow-read=<allow-read> Allow file system read access
|
--allow-read=<allow-read> Allow file system read access
|
||||||
|
--allow-run Allow running subprocesses
|
||||||
--allow-write=<allow-write> Allow file system write access
|
--allow-write=<allow-write> Allow file system write access
|
||||||
-c, --config <FILE> Load compiler configuration file
|
-c, --config <FILE> Load compiler configuration file
|
||||||
|
-h, --help Prints help information
|
||||||
--importmap <FILE> Load import map file
|
--importmap <FILE> Load import map file
|
||||||
-L, --log-level <log-level> Set log level [possible values: debug, info]
|
-L, --log-level <log-level> Set log level [possible values: debug, info]
|
||||||
|
--no-fetch Do not download remote modules
|
||||||
|
--no-prompt Do not use prompts
|
||||||
|
-r, --reload Reload source code cache (recompile TypeScript)
|
||||||
--seed <NUMBER> Seed Math.random()
|
--seed <NUMBER> Seed Math.random()
|
||||||
--v8-flags=<v8-flags> Set V8 command line options
|
--v8-flags=<v8-flags> Set V8 command line options
|
||||||
|
--v8-options Print V8 command line options
|
||||||
|
|
||||||
SUBCOMMANDS:
|
SUBCOMMANDS:
|
||||||
[SCRIPT] Script to run
|
[SCRIPT] Script to run
|
||||||
|
|
Loading…
Reference in a new issue