Skip to content

Commit

Permalink
refactor: reorganize flags
Browse files Browse the repository at this point in the history
- Prevent clap from auto-detecting terminal width and attempting to wrap
  text.
- Remove `--v8-options`, instead use `--v8-flags=--help`
- Give more descriptive names to unit tests in flags.rs
- Assume argv and subcommand into DenoFlags struct so the output of
  flags module is only DenoFlags rather than the tuple (subcommand, flags,
  argv).
- Improve CLI help text
- Make `deno run` specific args like `--allow-net` only show up in 'deno
  help run' instead of as global flags in `deno help`.
- Removes `deno version` to simplify our implementation and be closer to
  clap defaults. `deno -V` now only shows Deno's version and not V8's nor
  TypeScript. `Deno.versions` can be used to see that information.
  • Loading branch information
ry committed Nov 23, 2019
1 parent 363b968 commit 3b7d93d
Show file tree
Hide file tree
Showing 4 changed files with 1,336 additions and 1,337 deletions.
Loading

0 comments on commit 3b7d93d

Please sign in to comment.