You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When used programmatically with exec(), only the first variadic argument is passed to the command.
To Reproduce
Steps to reproduce the behavior:
const{ program }=require('@caporal/core');program.command('join','join many strings').argument('<str...>','strings').action(async({args})=>{console.log('ARGS: ',args);});program.exec(['join','a','b','c','d'],{silent: true});
Describe the bug
When used programmatically with
exec()
, only the first variadic argument is passed to the command.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Actual behavior
❯ node packages/cli/test/quick-test.js ARGS: { str: 'a' }
Environment informations (please complete the following information):
The text was updated successfully, but these errors were encountered: