Skip to content

Commit

Permalink
Remove warning detail only relevant when thenables from argParsers ar…
Browse files Browse the repository at this point in the history
…e awaited

Must be reverted when merged with tj#1913 or tj#1915
  • Loading branch information
aweebit committed Jul 28, 2023
1 parent ac955dc commit 0553d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ Call on top-level command instead`);
// callback might return a promise
const result = fn();
if (!PRODUCTION && !this._asyncParsing && isThenable(result)) {
console.warn(`.parse() is incompatible with async argParsers, hooks and actions.
console.warn(`.parse() is incompatible with async hooks and actions.
Use .parseAsync() instead.`);
}
return result;
Expand Down

0 comments on commit 0553d32

Please sign in to comment.