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.
--input-format
1 parent 926440b commit 51ea2a4Copy full SHA for 51ea2a4
src/language/cli/input.ts
@@ -18,6 +18,10 @@ export const handleInput = async <Result>(
18
'input-format': { type: 'string' },
19
},
20
})
21
+
22
+ // Only JSON is supported currently. `--input-format` isn't really necessary
23
+ // right now, but requiring it ensures forwards-compatibility of scripts when
24
+ // other formats are added.
25
if (args.values['input-format'] === undefined) {
26
throw new Error('Missing required option: --input-format')
27
} else if (args.values['input-format'] !== 'json') {
0 commit comments