MCPcopy Create free account
hub / github.com/webpack/webpack-cli / isGlobalOption

Method isGlobalOption

packages/webpack-cli/src/webpack-cli.ts:1387–1393  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1385 ) {
1386 const isOption = (value: string): boolean => value.startsWith("-");
1387 const isGlobalOption = (value: string) =>
1388 value === "--color" ||
1389 value === "--no-color" ||
1390 value === "-v" ||
1391 value === "--version" ||
1392 value === "-h" ||
1393 value === "--help";
1394 const { bold } = this.colors;
1395 // Shared "chrome" used to render the help screens. These are purely visual:
1396 // colors collapse to plain strings when colors are disabled (e.g. piped output

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected