Skip to content

Commit

Permalink
Tweak cli
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Feb 2, 2025
1 parent e46e5b0 commit 8f275cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ program
.option('-c, --config <path>', 'location of a RequireJS config file for AMD')
.option('-f, --filename <path>', 'file containing the dependency')
.option('-d, --directory <path>', 'directory containing all files')
.showHelpAfterError()
.parse();

if (program.args.length === 0) {
program.help();
}

const partial = program.args[0];
const { filename, config } = program.opts();

Expand Down

0 comments on commit 8f275cf

Please sign in to comment.