diff options
author | Hugo <hugovk@users.noreply.github.com> | 2018-01-16 08:58:02 +0200 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-01-16 13:16:15 -0500 |
commit | 7c58e12133262f8b070ce3d284f1742fad463bcd (patch) | |
tree | 20d267b449d70b3ce51c85baa29dff498d0b735b | |
parent | c480854e334a225812dd43582b28a48ee57aa9b5 (diff) | |
download | external_python_mako-7c58e12133262f8b070ce3d284f1742fad463bcd.tar.gz external_python_mako-7c58e12133262f8b070ce3d284f1742fad463bcd.tar.bz2 external_python_mako-7c58e12133262f8b070ce3d284f1742fad463bcd.zip |
Removed unnecessary "usage" prefix from mako-render script.
Pull request courtesy Hugo.
(cherry picked from commit 7e6a1d7822bac275aabb3c1cc90cb67612548127)
Change-Id: I84a302c982f18762d2514c3f840331d1eb3ebcda
-rw-r--r-- | doc/build/changelog.rst | 6 | ||||
-rwxr-xr-x | mako/cmd.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/build/changelog.rst b/doc/build/changelog.rst index bb592c9..46e9e98 100644 --- a/doc/build/changelog.rst +++ b/doc/build/changelog.rst @@ -15,6 +15,12 @@ Changelog Added ``--output-encoding`` flag to the mako-render script. Pull request courtesy lacsaP. + .. change:: + :tags: bug + + Removed unnecessary "usage" prefix from mako-render script. + Pull request courtesy Hugo. + .. changelog:: :version: 1.0.7 :released: Thu Jul 13 2017 diff --git a/mako/cmd.py b/mako/cmd.py index 609b4c9..ff738c4 100755 --- a/mako/cmd.py +++ b/mako/cmd.py @@ -24,7 +24,7 @@ def _exit(): def cmdline(argv=None): - parser = ArgumentParser("usage: %prog [FILENAME]") + parser = ArgumentParser() parser.add_argument( "--var", default=[], action="append", help="variable (can be used multiple times, use name=value)") |