Skip to content

Commit 8891f5c

Browse files
committed
fix(cli): fix crash
1 parent 06b5a00 commit 8891f5c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ yargs
113113
}
114114
},
115115
)
116+
.demandCommand()
116117
.options('t', {
117118
alias: 'template',
118119
describe: 'Path to handlebars page template, see https://git.io/vxZ3V for the example ',
119120
type: 'string',
120121
})
121122
.options('options', {
122123
describe: 'ReDoc options, use dot notation, e.g. options.nativeScrollbars',
123-
})
124-
.demandCommand().argv;
124+
}).argv;
125125

126126
async function serve(port: number, pathToSpec: string, options: Options = {}) {
127127
let spec = await loadAndBundleSpec(pathToSpec);

cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redoc-cli",
3-
"version": "0.3.1",
3+
"version": "0.3.3",
44
"description": "ReDoc's Command Line Interface",
55
"main": "index.js",
66
"bin": "index.js",
@@ -12,7 +12,8 @@
1212
"isarray": "^2.0.4",
1313
"react": "^16.3.0-alpha.2",
1414
"react-dom": "^16.3.0-alpha.2",
15-
"redoc": "^2.0.0-alpha.15"
15+
"redoc": "^2.0.0-alpha.15",
16+
"yargs": "^11.0.0"
1617
},
1718
"scripts": {
1819
"ci-publish": "ci-publish"

0 commit comments

Comments
 (0)