Skip to content

Commit aedc86d

Browse files
authored
Merge pull request #124 from docsbydoxdox/hotfix/allow-multiple-inputs
[hotfix] Allow multiple inputs.
2 parents cba8eaa + f62f0b3 commit aedc86d

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)