aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-08-28 14:15:19 -0700
committerDan Albert <danalbert@google.com>2015-08-28 14:15:19 -0700
commitd91d70c01d44a6f0feb72380b2accc928e6d0f32 (patch)
tree9c06c3c85e8779178471f8766c97eb272ba2efe7
parent66fe4c3e70d45cbb2b3081e7f37634ea976b2dce (diff)
downloadyasm-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-xbuild.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.py b/build.py
index 40f326c1..0cd17a8a 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 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'),