diff --git a/lib/command.js b/lib/command.js index 7a637cb77..e06510443 100644 --- a/lib/command.js +++ b/lib/command.js @@ -330,7 +330,7 @@ class Command extends EventEmitter { */ arguments(names) { - names.split(/ +/).forEach((detail) => { + names.trim().split(/ +/).forEach((detail) => { this.argument(detail); }); return this;