Skip to content

Commit

Permalink
fix(cli): fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Mar 20, 2018
1 parent 06b5a00 commit 8891f5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ yargs
}
},
)
.demandCommand()
.options('t', {
alias: 'template',
describe: 'Path to handlebars page template, see https://git.io/vxZ3V for the example ',
type: 'string',
})
.options('options', {
describe: 'ReDoc options, use dot notation, e.g. options.nativeScrollbars',
})
.demandCommand().argv;
}).argv;

async function serve(port: number, pathToSpec: string, options: Options = {}) {
let spec = await loadAndBundleSpec(pathToSpec);
Expand Down
5 changes: 3 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redoc-cli",
"version": "0.3.1",
"version": "0.3.3",
"description": "ReDoc's Command Line Interface",
"main": "index.js",
"bin": "index.js",
Expand All @@ -12,7 +12,8 @@
"isarray": "^2.0.4",
"react": "^16.3.0-alpha.2",
"react-dom": "^16.3.0-alpha.2",
"redoc": "^2.0.0-alpha.15"
"redoc": "^2.0.0-alpha.15",
"yargs": "^11.0.0"
},
"scripts": {
"ci-publish": "ci-publish"
Expand Down

0 comments on commit 8891f5c

Please sign in to comment.