Skip to content

Commit

Permalink
Added a version command
Browse files Browse the repository at this point in the history
  • Loading branch information
seahyc committed Oct 10, 2024
1 parent cbbc121 commit 52a37b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file not shown.
2 changes: 2 additions & 0 deletions src/ocbc_dbs_statement_parser/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
from decimal import Decimal
from .main import parse_bank_statement
from . import __version__ # Import the version from your package

def decimal_default(obj):
if isinstance(obj, Decimal):
Expand All @@ -13,6 +14,7 @@ def cli():
parser.add_argument("pdf_path", help="Path to the PDF file")
parser.add_argument("--debug", action="store_true", help="Enable debug output")
parser.add_argument("--verify", action="store_true", help="Verify transaction totals")
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
args = parser.parse_args()

result = parse_bank_statement(args.pdf_path, args.debug, args.verify)
Expand Down

0 comments on commit 52a37b3

Please sign in to comment.