Skip to content

Commit 7ffc2d7

Browse files
Added a dedicated warning about the missing "--support-info" option
1 parent 831a107 commit 7ffc2d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ const makeBin = (): Bin => {
137137
'Require either "@prettier" or "@format" to be present in the file\'s first docblock comment in order for it to be formatted\nDefaults to "false"',
138138
)
139139
.option("--stdin-filepath <path>", "Path to the file to pretend that stdin comes from")
140-
// .option("--support-info", "Print support information as JSON")
141140
/* DEFAULT COMMAND */
142141
.argument("[file/dir/glob...]", "Files, directories or globs to format")
143142
.action(async (options, files) => {
@@ -242,6 +241,10 @@ const makeWarnedPluggableBin = async (): Promise<Bin> => {
242241
exit('The "--file-info" option is not currently supported, please open an issue on GitHub if you need it');
243242
}
244243

244+
if (args["support-info"]) {
245+
exit('The "--support-info" option is not currently supported, please open an issue on GitHub if you need it');
246+
}
247+
245248
const bin = await makePluggableBin();
246249
return bin;
247250
};

0 commit comments

Comments
 (0)