Skip to content

Commit

Permalink
Fix: Ensure that flag values are preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar authored and phated committed Dec 10, 2018
1 parent 69851a7 commit 58f67e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function (flags, argv) {
argv.slice(2).forEach(function (arg) {
var flag = arg.split('=')[0];
if (flags.indexOf(flag) !== -1) {
args.unshift(flag);
args.unshift(arg);
} else {
args.push(arg);
}
Expand Down

0 comments on commit 58f67e7

Please sign in to comment.