Skip to content

Commit

Permalink
rewrite main cli with proper argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
noxan committed Nov 22, 2022
1 parent e2996bc commit 8e85474
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions neuralprophet/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
"""
Invokes neuralprophet when module is run as a script.
"""

import argparse
from neuralprophet._version import __version__


parser = argparse.ArgumentParser(description="NeuralProphet")
parser.add_argument("-v", "--version", action="version", version="%(prog)s " + __version__)


if __name__ == "__main__":
print(__version__)
parser.parse_args()

0 comments on commit 8e85474

Please sign in to comment.