The --target-node option didn't correctly parse the option into a number, and because of that would crash when setting to any value other than current. Additionally, we'll print a more helpful error when the compiler can't be initialized.
How Was This Tested?
Tests were added to test/unit/cli/opts.test.js.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My change follows the style of this project
[ ] My change requires a change to the documentation
Description
Fix parsing of the
--target-node
option.Motivation and Context
The --target-node option didn't correctly parse the option into a number, and because of that would crash when setting to any value other than
current
. Additionally, we'll print a more helpful error when the compiler can't be initialized.How Was This Tested?
Tests were added to
test/unit/cli/opts.test.js
.Types of changes
Checklist: