Commit 4c212d9a authored by Mike Frysinger's avatar Mike Frysinger Committed by Commit Bot

grit: fix buildinfo help output

The usage docs were in the wrong docstring.

Bug: 747171
Change-Id: Ia08331f8c41f86ce41c795ff1494e258c0d33bf3
Reviewed-on: https://chromium-review.googlesource.com/c/1323807Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606582}
parent 7260681b
......@@ -13,7 +13,13 @@ from grit.node import structure
from grit.tool import interface
class DetermineBuildInfo(interface.Tool):
"""Determine what files will be read and output by GRIT."""
"""Determine what files will be read and output by GRIT.
Outputs the list of generated files and inputs used to stdout.
Usage: grit buildinfo [-o DIR]
The output directory is used for display only.
"""
def __init__(self):
pass
......@@ -24,8 +30,7 @@ class DetermineBuildInfo(interface.Tool):
'output by GRIT with a given input.')
def Run(self, opts, args):
"""Main method for the buildinfo tool. Outputs the list
of generated files and inputs used to stdout."""
"""Main method for the buildinfo tool."""
self.output_directory = '.'
(own_opts, args) = getopt.getopt(args, 'o:')
for (key, val) in own_opts:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment