Browse Source

Bumped version number and added version option

atexit v2.4
Raphael Roberts 6 years ago
parent
commit
4f5de7f1f5
  1. 4
      ctabus/__init__.py
  2. 2
      setup.py

4
ctabus/__init__.py

@ -1,4 +1,5 @@
#!/usr/bin/python3
__version__ = "2.4"
from dateutil import tz
from dateutil.parser import parse as date_parse
from threading import Event
@ -27,6 +28,9 @@ EXIT = Event()
# https://stackoverflow.com/a/5967539
parser = argparse.ArgumentParser(prog="ctabus")
parser.add_argument(
"-v", "--version", action="version", version="%(prog)s {}".format(__version__)
)
parser.add_argument("-l", "--lucky", action="store_true", help="picks first result")
parser.add_argument(
"-p", "--periodic", metavar="SEC", type=int, help="checks periodically"

2
setup.py

@ -5,7 +5,7 @@ with open("requirements.txt") as file:
setup(
name="ctabus",
version="2.3.1",
version="2.4",
description="Python package for tracking cta bus times",
install_requires=INSTALL_REQUIRES,
author="rlbr",

Loading…
Cancel
Save