Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename CLI flags to subcommands #2212

Merged
merged 3 commits into from
Apr 25, 2019
Merged

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Apr 25, 2019

This PR changes CLI flags --help and --version to subcommands.

  • Changes to deno --version:
    It has been renamed to deno version subcommand, so effectively you no longer can do deno --version some_file.ts
$ deno version
deno: 0.3.9
v8: 7.4.238
typescript: 3.4.1
  • Changes to deno --help:
    Deno still has deno --help and deno -h. Additionally a new subcommand deno help is present which can be used two-fold:
$ deno help // works just like deno -h
deno

USAGE:
    deno [FLAGS] [OPTIONS] [SUBCOMMAND]
...

$ deno help <subcommand> // display help for subcommand

$ deno help eval
Eval script

USAGE:
    deno eval <code>

FLAGS:
    -h, --help    Prints help information

ARGS:
    <code>

@ry if #2189 is a go, I'll add it to this PR as well

@ry
Copy link
Member

ry commented Apr 25, 2019

Let’s do “deno run” in a different PR. That has a higher likelihood of breaking something.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ry ry merged commit aa85a4d into denoland:master Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants