Skip to content

Commit 51ea2a4

Browse files
committed
Add a comment about --input-format
1 parent 926440b commit 51ea2a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/language/cli/input.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export const handleInput = async <Result>(
1818
'input-format': { type: 'string' },
1919
},
2020
})
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.
2125
if (args.values['input-format'] === undefined) {
2226
throw new Error('Missing required option: --input-format')
2327
} else if (args.values['input-format'] !== 'json') {

0 commit comments

Comments
 (0)