Skip to content

Commit 47b9be5

Browse files
committed
Allow multiple inputs.
1 parent cba8eaa commit 47b9be5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/doxdox-cli/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ Included Layouts:
4545
- Bootstrap (https://getbootstrap.com)
4646
- JSON`;
4747

48-
const args: { flags: { [key in string]: string }; input?: string } =
48+
const args: { flags: { [key in string]: string }; inputs: string[] } =
4949
parseCmdArgs(null, {
50-
requireUserInput: true
50+
requireUserInput: true,
51+
allowMultipleInputs: true
5152
});
5253

5354
const cwd = process.cwd();
@@ -89,7 +90,7 @@ const overridePackage = args.flags['-p'] || args.flags['--package'];
8990
}
9091

9192
const paths = await globby(
92-
(args.input ? [args.input] : defaultPaths).concat(
93+
(args.inputs?.length ? [...args.inputs] : defaultPaths).concat(
9394
parseIgnoreConfig(overrideIgnore.split(',').join(EOL))
9495
),
9596
{

0 commit comments

Comments
 (0)