Format GN files in-place by default.

Almost all manual uses of "gn format" are to update files in-place. Make
this mode the default rather than requiring --in-place to be passed.

With this change, you can update a file in-place or use pipes, but the previous
mode to take input from a file and output to stdout is lost. This seems to be
not a strong use-case, and one can always pipe a file to stdin to work around
the limitation.

Suppresses outputting formated data when --dump-tree is specified.

Review-Url: https://codereview.chromium.org/2219703003
Cr-Original-Commit-Position: refs/heads/master@{#410137}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16ad3fe769c7215728e6c7661674d871d5fe3052
1 file changed
tree: 484dba49d15aacdfd2076874f0b46d41609dd29c
  1. tools/