summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fracture/__main__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fracture/__main__.py b/fracture/__main__.py
index 822cf96..d0305ab 100644
--- a/fracture/__main__.py
+++ b/fracture/__main__.py
@@ -1,6 +1,7 @@
from invoice import Invoice, Tax
import db
+import datetime
from functools import wraps
from argparse import ArgumentParser as ap
import tempfile
@@ -140,6 +141,7 @@ if __name__ == "__main__":
summary_parser.add_argument("--quarter", type=int,
help="Obtain the summary of the quarter")
summary_parser.add_argument("--year", type=int,
+ default=datetime.datetime.now().year,
help="Obtain the summary of the year")
summary_parser.set_defaults(func=summarize)