Skip to content

Commit fa746fb

Browse files
authored
Added color CLI options (#2678)
* Added color CLI options * add comment ---------
1 parent 66ba23f commit fa746fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: packages/svelte-check/src/options.ts

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ export function parseOptions(cb: (opts: SvelteCheckCliOptions) => any) {
6565
'Filters the diagnostics to display. `error` will output only errors while `warning` will output warnings and errors.',
6666
'warning'
6767
)
68+
// read by sade and preprocessor like sass
69+
.option('--color', 'Force enabling of color output', false)
70+
.option('--no-color', 'Force disabling of color output', false)
6871
.action((opts) => {
6972
const workspaceUri = getWorkspaceUri(opts);
7073
const tsconfig = getTsconfig(opts, workspaceUri.fsPath);

0 commit comments

Comments
 (0)