From: noah morrison Date: Mon, 26 Jan 2015 22:00:30 +0000 (-0500) Subject: Add -v|--version option to chevron. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=5e0659d35f673be947f697791a54f63824c685ca;p=chevron.git Add -v|--version option to chevron. --- diff --git a/chevron/main.py b/chevron/main.py index 3c15c8b..402319d 100755 --- a/chevron/main.py +++ b/chevron/main.py @@ -48,6 +48,9 @@ def cli_main(): parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('-v', '--version', action='version', + version='0.8.4') + parser.add_argument('template', help='The mustache file', type=is_file)