lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 6fae6eefad0e1e2db80c735b846d3829c108b434
parent 350818d1cf9e8e99941f67b22f1b160650885ff7
Author: rsiddharth <rsd@gnu.org>
Date:   Sun, 20 Dec 2015 12:04:38 -0500

Added --version switch to `lps_gen`

Diffstat:
lps_gen.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lps_gen.py b/lps_gen.py @@ -30,7 +30,7 @@ from jinja2 import Environment, PackageLoader from jinja2.exceptions import TemplateNotFound from mistune import Renderer, Markdown -__version__ = '0.1.0.dev6' +__version__ = '0.1.0.dev7' # unicode magic reload(sys) @@ -169,6 +169,9 @@ def RenderHTML(lps_dict, year): def main(): parser = ArgumentParser() + parser.add_argument("--version", action="version", + version='lpschedule-generator version %s' % __version__, + help="Show version number and exit.") parser.add_argument("year", help="LP Schedule year.") parser.add_argument("lps_md",