diff options
author | Dan Albert <danalbert@google.com> | 2015-08-28 14:15:19 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-08-28 14:15:19 -0700 |
commit | d91d70c01d44a6f0feb72380b2accc928e6d0f32 (patch) | |
tree | 9c06c3c85e8779178471f8766c97eb272ba2efe7 | |
parent | 66fe4c3e70d45cbb2b3081e7f37634ea976b2dce (diff) | |
download | yasm-d91d70c01d44a6f0feb72380b2accc928e6d0f32.tar.gz |
Use module docstring for argparse help.
Also fix the doc to not be for the GCC build...
Change-Id: I3dafef1d4bfe7703e795f8ed7917af6190456f3a
-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 YASM for the NDK.""" from __future__ import print_function import argparse +import inspect import os import subprocess import sys @@ -43,7 +45,8 @@ def get_default_host(): 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'), |