Skip to content

Commit f6ae3df

Browse files
authored
Show choices in help text for --dep-type (#611)
1 parent 38fdeac commit f6ae3df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { join, dirname } from 'node:path';
44
import type { PackageJson } from 'type-fest';
55
import { fileURLToPath } from 'node:url';
66
import { CDVC } from './cdvc.js';
7-
import { Options } from './types.js';
7+
import { DEPENDENCY_TYPE, Options } from './types.js';
88
import { DEFAULT_DEP_TYPES } from './defaults.js';
99

1010
const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -35,6 +35,8 @@ export function run() {
3535
'--dep-type <dependency-type>',
3636
`Type of dependency to check (default: ${DEFAULT_DEP_TYPES.join(
3737
', '
38+
)}) (choices: ${Object.keys(DEPENDENCY_TYPE).join(
39+
', '
3840
)}) (option can be repeated)`,
3941
collect,
4042
[]

0 commit comments

Comments
 (0)