Skip to content

Commit

Permalink
trim() input string of .arguments method
Browse files Browse the repository at this point in the history
  • Loading branch information
Felarn authored and abetomo committed May 4, 2023
1 parent 60958df commit 2f07c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/command.js
Expand Up @@ -330,7 +330,7 @@ class Command extends EventEmitter {
*/

arguments(names) {
names.split(/ +/).forEach((detail) => {
names.trim().split(/ +/).forEach((detail) => {
this.argument(detail);
});
return this;
Expand Down

0 comments on commit 2f07c2a

Please sign in to comment.