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
If true, Sade will not immediately execute the `action` handler. Instead, `parse()` will return an object of `{ name, args, handler }` shape, wherein the `name` is the command name, `args` is all arguments that _would be_ passed to the action handler, and `handler` is the function itself.
From this, you may choose when to run the `handler` function. You also have the option to further modify the `args` for any reason, if needed.
```js
let { name, args, handler } =prog.parse(process.argv, { lazy:true });
console.log('> Received command: ', name);
// later on...
handler.apply(null, args);
```
One solution may be to return:
{args: [],name: '',handler: undefined,helpOrVersion: true// indicates the user passed one of the options}
The text was updated successfully, but these errors were encountered:
sade/src/index.js
Lines 150 to 152 in 1cdf3e4
The early return here will break the following:
This is inconsistent with the documentation:
sade/readme.md
Lines 638 to 653 in 1cdf3e4
One solution may be to return:
The text was updated successfully, but these errors were encountered: