Improve CLI interface of C++ enums to Java generator
commit4e3301c82c48ac22439d1b9dc34ba05a0599e3e9
authormnaganov <mnaganov@chromium.org>
Tue, 24 Feb 2015 11:56:27 +0000 (24 03:56 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 24 Feb 2015 11:56:59 +0000 (24 11:56 +0000)
tree2e2a696b53045fc5e29e75ca4dab5078c9178e0d
parente14d2ddde29e1cbce523fe00a03a1f1b9d42e6fa
Improve CLI interface of C++ enums to Java generator

1. Print error if input file doesn't have any annotated enums.

2. Convert "mandatory option" 'output_dir' into a positional argument.

3. Fix 'print_output_only' when running from command line.

BUG=458562

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

Cr-Commit-Position: refs/heads/master@{#317783}
build/android/gyp/java_cpp_enum.py
build/android/gyp/java_cpp_enum_tests.py
build/android/java_cpp_enum.gypi
build/config/android/rules.gni