Skip to content

Commit

Permalink
feat(cli): use --input instead of --directory for input files
Browse files Browse the repository at this point in the history
  • Loading branch information
blurrah committed Jul 1, 2024
1 parent 5c7cc70 commit f86afd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { processFiles } from "../main";

async function main() {
yargs(hideBin(process.argv))
.usage("$0 --directory [path] --output [json file]")
.usage("$0 --input [path] --output [json file]")
.options({
directory: {
input: {
type: "array",
alias: "s",
alias: "i",
describe: "Source directories to process",
demandOption: true, // Require at least one source path
coerce: (arg: string | Array<string>) => {
Expand Down Expand Up @@ -39,7 +39,7 @@ async function main() {
yargs.showHelpOnFail(false);
},
async (argv) => {
await processFiles(argv.source, argv.output);
await processFiles(argv.input, argv.output);
}
)
.help()
Expand Down

0 comments on commit f86afd0

Please sign in to comment.