Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2146 from trufflesuite/console/develop-fix
Browse files Browse the repository at this point in the history
Fix: ensure `console` & `develop` are passed commands as an array
  • Loading branch information
CruzMolina authored Jul 2, 2019
2 parents 42e8ddc + 1cc1f1f commit 9750359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/truffle-core/lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ class Command {
}
});

//Check unsupported command line flag according to the option list in help
// Check unsupported command line flag according to the option list in help
try {
// while in `console` & `develop`, input is passed as a string, not as an array
if (!Array.isArray(inputStrings)) inputStrings = inputStrings.split(" ")
const inputOptions = inputStrings
.map(string => {
return string.startsWith("--") ? string : null;
Expand Down

0 comments on commit 9750359

Please sign in to comment.