diff --git a/cli/flags.rs b/cli/flags.rs index 535ed500ae5b1a58a4dc35fb49b49cdd4e909ae7..0a6b353f92a732cf7854db7da312c8ec38bad656 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -116,7 +116,7 @@ Examples: https://github.com/WICG/import-maps#the-import-map", pub fn create_cli_app<'a, 'b>() -> App<'a, 'b> { add_run_args(App::new("deno")) .bin_name("deno") - .global_settings(&[AppSettings::ColorNever]) + .global_settings(&[AppSettings::ColorNever, AppSettings::UnifiedHelpMessage]) .settings(&[AppSettings::DisableVersion, AppSettings::AllowExternalSubcommands]) .after_help(ENV_VARIABLES_HELP) .long_about("A secure runtime for JavaScript and TypeScript built with V8, Rust, and Tokio. diff --git a/website/manual.md b/website/manual.md index 9d2b60455756cdf2d7d925b4cd6adede0bbc5574..b29311b19605d352a97de67fbe63b7f196155a61 100644 --- a/website/manual.md +++ b/website/manual.md @@ -599,27 +599,26 @@ Use `deno help` to see the help text. ``` USAGE: - deno [FLAGS] [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 + deno [OPTIONS] [SUBCOMMAND] OPTIONS: + -A, --allow-all Allow all permissions + --allow-env Allow environment access + --allow-hrtime Allow high resolution time measurement --allow-net= Allow network access --allow-read= Allow file system read access + --allow-run Allow running subprocesses --allow-write= Allow file system write access -c, --config Load compiler configuration file + -h, --help Prints help information --importmap Load import map file -L, --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 Seed Math.random() --v8-flags= Set V8 command line options + --v8-options Print V8 command line options SUBCOMMANDS: [SCRIPT] Script to run