Skip to content

Commit

Permalink
feat: add --version to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
devonwesley committed May 4, 2019
1 parent 4ea2796 commit 167f805
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 42 deletions.
67 changes: 25 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import orpcGenerator from "./";
import { parseOpenRPCDocument } from "@open-rpc/schema-utils-js";

program
.version(`v${require('../../package.json').version}`, '-v, --version')
.usage("[options] <clientName>")
.option("-d, --document [openrpcDocument]", "JSON string or a Path/Url pointing to an open rpc schema", "./openrpc.json")
.action(async () => {
Expand Down

0 comments on commit 167f805

Please sign in to comment.