Skip to content

Add more robust option parsing [WIP]

This is a start for adding more robust option parsing. I wanted to go ahead and open this to get some feedback on the direction.

Note: this is by no means complete and there are failing tests from it currently

I have included the option parser found at https://github.com/JGiard/tclap. I had to make some modifications to allow passing through v8 options.

TODO

  • Migrate debug option parsing
  • Make sure the --icu-data-dir flag works as intended

Questions

  1. Is this a direction that we are interested in going?
  2. This library throws exceptions in the event a flag that requires an argument fails to validate. So, it requires removing the -fno-exceptions flag. Is that acceptable?

In general, I would appreciate any/all feedback to see if this is something that should be pursued.

Merge request reports

Loading