Skip to content

Commit de93432

Browse files
Added a dedicated warning about the missing "--find-config-path" option
1 parent 3517afc commit de93432

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bin.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { toKebabCase } from "kasi";
44
import { bin, color, exit, parseArgv } from "specialist";
55
import { PRETTIER_VERSION } from "./constants.js";
6-
import { getPlugin, isNumber, isString, normalizeOptions, normalizeFormatOptions, normalizePluginOptions } from "./utils.js";
6+
import { getPlugin, isBoolean, isNumber, isString, normalizeOptions, normalizeFormatOptions, normalizePluginOptions } from "./utils.js";
77
import type { Bin, PluginsOptions } from "./types.js";
88

99
const makeBin = (): Bin => {
@@ -226,6 +226,10 @@ const makeWarnedPluggableBin = async (): Promise<Bin> => {
226226
exit('The "--cache-strategy" option has been deleted, since the "metadata" strategy is no longer supported');
227227
}
228228

229+
if (isBoolean(args["find-config-path"])) {
230+
exit('The "--find-config-path" is not currently supported, please open an issue on GitHub if you need it');
231+
}
232+
229233
const bin = await makePluggableBin();
230234
return bin;
231235
};

0 commit comments

Comments
 (0)