Skip to content

Commit d8c17fb

Browse files
committed
feat: pass options to custom commands
1 parent 627bea3 commit d8c17fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const program = new Command()
2323
.argument('[command]', 'Command that you want to run')
2424
.argument('[args...]', 'Arguments for the command')
2525
.option('-d, --debug', 'Enable debugging features', false)
26+
.passThroughOptions(true)
2627
.action(async (commandName?: string, args?: string[]) => {
2728
const userConfig = getConfig();
2829
const configCommands = userConfig.commands;

0 commit comments

Comments
 (0)