Skip to content

Commit

Permalink
Fix bug passing args to main
Browse files Browse the repository at this point in the history
  • Loading branch information
robreeves committed May 30, 2020
1 parent 9d8a65a commit 2288e64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions epochis/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def _check_args(args):
sys.exit(0)


def main(args):
def main(args=None):
if args is None:
args = sys.argv

_check_args(args)

try:
Expand Down Expand Up @@ -54,4 +57,4 @@ def main(args):


if __name__ == "__main__":
main(sys.argv)
main()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setuptools.setup(
name="epochis",
version="1.1.0",
version="1.1.1",
author="Rob Reeves",
author_email="",
description="A CLI to convert offsets from epoch to human readable dates",
Expand Down

0 comments on commit 2288e64

Please sign in to comment.