intel / zephyr.js

JavaScript* Runtime for Zephyr* OS
Other
180 stars 64 forks source link

[main] Simplified jslinux command line options #1875

Open jprestwo opened 6 years ago

jprestwo commented 6 years ago

jslinux was manually parsing arguments which is ugly. The optarg functionality does argument parsing automatically.

Also, a usage print was added in the case of invalid arguments or if --help was specified.

Signed-off-by: James Prestwood james.prestwood@intel.com