Use optparse in js2c.py for python compatibility
authorben <ben@strongloop.com>
Mon, 22 Jun 2015 12:13:52 +0000 (05:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Jun 2015 12:13:56 +0000 (12:13 +0000)
commit44bc918458481d60b08d5566f0f31a79e39b85d7
treefbf1289c029a7a87e0732fe0459ad46a1605bfc3
parentd4f70f8ce8f523f6ea5986b59923c133747338c6
Use optparse in js2c.py for python compatibility

Without this change, V8 won't build on RHEL/CentOS 6 because the distro
python is too old to know about the argparse module.

Can this commit be cherry-picked to the 4.4 branch?  It should apply
cleanly.

BUG=

Review URL: https://codereview.chromium.org/1192973004

Cr-Commit-Position: refs/heads/master@{#29186}
tools/js2c.py