aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildtool/BuildResult.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-02-24 22:45:32 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-02-25 14:14:05 +0000
commitf6a387cf5816602b9f6ad3283f15e33e44a71d9d (patch)
tree59227b5655a9af074cdcb7e098e13dd7cdca8cef /src/main/java/com/google/devtools/build/lib/buildtool/BuildResult.java
parent029dcc7929493f9a2c72daa8720c9ff06e003483 (diff)
Problem:
The --help option is currently broken when allow residue is false as the --help option cannot be parsed and results in exit(2) after emitting the unhelpful message: Error parsing command line: Unrecognized option: --help Try --help. In this case, --help is never reached, and so cannot be used. Solution: In the proposed code, if any argument is --help, the --help message will be preferred over emitting parsing errors. The process will now exit(0) prior to parsing any other arguments if --help is passed. -- MOS_MIGRATED_REVID=115495600
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildtool/BuildResult.java')
0 files changed, 0 insertions, 0 deletions