aboutsummaryrefslogtreecommitdiffstats
path: root/build.py
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-08-28 14:14:33 -0700
committerDan Albert <danalbert@google.com>2015-08-28 14:14:50 -0700
commit395e4e37ee145cb6d3e7419383b314cc6102156a (patch)
tree0723bd714b6f3c85a7950941bfc0dadbe4f4a0c9 /build.py
parent59e18e04b2c6c598c06d1a0ab98a71baa830eaf2 (diff)
downloadtoolchain_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-xbuild.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.py b/build.py
index 34cc19f5b..ddafc2166 100755
--- a/build.py
+++ b/build.py
@@ -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'),