mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 01:53:44 +03:00
fix(cli): fix crash
This commit is contained in:
parent
06b5a00a8b
commit
8891f5c97d
|
@ -113,6 +113,7 @@ yargs
|
|||
}
|
||||
},
|
||||
)
|
||||
.demandCommand()
|
||||
.options('t', {
|
||||
alias: 'template',
|
||||
describe: 'Path to handlebars page template, see https://git.io/vxZ3V for the example ',
|
||||
|
@ -120,8 +121,7 @@ yargs
|
|||
})
|
||||
.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);
|
||||
|
|
|
@ -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",
|
||||
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user