Skip to content

Commit

Permalink
Added a dedicated warning about the missing "--find-config-path" option
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiospampinato committed Apr 27, 2024
1 parent 3517afc commit de93432
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { toKebabCase } from "kasi";
import { bin, color, exit, parseArgv } from "specialist";
import { PRETTIER_VERSION } from "./constants.js";
import { getPlugin, isNumber, isString, normalizeOptions, normalizeFormatOptions, normalizePluginOptions } from "./utils.js";
import { getPlugin, isBoolean, isNumber, isString, normalizeOptions, normalizeFormatOptions, normalizePluginOptions } from "./utils.js";
import type { Bin, PluginsOptions } from "./types.js";

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

if (isBoolean(args["find-config-path"])) {
exit('The "--find-config-path" is not currently supported, please open an issue on GitHub if you need it');
}

const bin = await makePluggableBin();
return bin;
};
Expand Down

0 comments on commit de93432

Please sign in to comment.