Skip to content

Commit 78815a2

Browse files
committed
Merge branch 'main' into add-eslint
2 parents e80c2c0 + 9688728 commit 78815a2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ try {
1111
const args = arg({
1212
'--openapi': String,
1313
'--overlay': String,
14-
'--help': String
14+
'--help': Boolean
1515
})
1616

1717
if (args['--overlay'] && args['--openapi']) {
@@ -22,6 +22,15 @@ try {
2222
} else {
2323
showHelp()
2424
}
25+
26+
if (args['--overlay'] && args['--openapi']) {
27+
const openapiFile = args['--openapi']
28+
const overlayFile = args['--overlay']
29+
const spec = overlayFiles(openapiFile, overlayFile)
30+
console.log(spec)
31+
} else {
32+
showHelp()
33+
}
2534
} catch (err) {
2635
if (err.code === 'ARG_UNKNOWN_OPTION') {
2736
console.warn(err.message)

0 commit comments

Comments
 (0)