diff options
author | Dan Albert <danalbert@google.com> | 2015-08-28 14:14:33 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-08-28 14:14:50 -0700 |
commit | 395e4e37ee145cb6d3e7419383b314cc6102156a (patch) | |
tree | 0723bd714b6f3c85a7950941bfc0dadbe4f4a0c9 /build.py | |
parent | 59e18e04b2c6c598c06d1a0ab98a71baa830eaf2 (diff) | |
download | toolchain_gcc-395e4e37ee145cb6d3e7419383b314cc6102156a.tar.gz toolchain_gcc-395e4e37ee145cb6d3e7419383b314cc6102156a.tar.bz2 toolchain_gcc-395e4e37ee145cb6d3e7419383b314cc6102156a.zip |
Use module docstring for argparse help.
Change-Id: Idc72987bd5652f0b2d666eedeb5ec51750da6929
Diffstat (limited to 'build.py')
-rwxr-xr-x | build.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -14,9 +14,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # +"""Builds GCC for Android.""" from __future__ import print_function import argparse +import inspect import multiprocessing import os import subprocess @@ -51,7 +53,8 @@ ALL_TOOLCHAINS = ( class ArgParser(argparse.ArgumentParser): def __init__(self): super(ArgParser, self).__init__( - description='Builds GCC for Android.') + description=inspect.getdoc(sys.modules[__name__]), + formatter_class=argparse.RawDescriptionHelpFormatter) self.add_argument( '--host', choices=('darwin', 'linux', 'windows', 'windows64'), |