We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e80c2c0 + 9688728 commit 78815a2Copy full SHA for 78815a2
index.js
@@ -11,7 +11,7 @@ try {
11
const args = arg({
12
'--openapi': String,
13
'--overlay': String,
14
- '--help': String
+ '--help': Boolean
15
})
16
17
if (args['--overlay'] && args['--openapi']) {
@@ -22,6 +22,15 @@ try {
22
} else {
23
showHelp()
24
}
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
+ }
34
} catch (err) {
35
if (err.code === 'ARG_UNKNOWN_OPTION') {
36
console.warn(err.message)
0 commit comments