Discussed in
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6596109/comments/217e68b5_bcf66ede
The warning message doesn't seem useful. This CL removes the warning
message for caffeinate, but adds help message instead. This CL also
refactors the help message for `autoninja --offline`.
```
> autoninja --help
autoninja:
-o/--offline temporary disable remote execution
caffeinate:
--no-caffeinate do not prepend `caffeinate` to ninja command
usage: ninja [options] [targets...]
...
```
Change-Id: I152a144efbb6002e3bfb03b23d1e0eb2d3b2af1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6620110
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Nico Weber <thakis@google.com>
Commit-Queue: Junji Watanabe <jwata@google.com>
Reviewed-by: Adam Norberg <norberg@google.com>
When building on macOS, it's better to avoid sleeping with caffeinate by
default. This CL prepends `caffeinate` to the build commands, which can
be opted out with `--no-caffeinate`.
Change-Id: Iacb72acb6523576305b38fe45bfef12f87121a93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6596109
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Junji Watanabe <jwata@google.com>
Reviewed-by: Fumitoshi Ukai <ukai@google.com>