summaryrefslogtreecommitdiff
path: root/fracture
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2020-09-17 11:52:31 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2020-09-18 00:13:27 +0200
commit7c42d4c1949516fdadb5db0634436b1451adf56d (patch)
tree5852d277463444e48f4f61a1c954e60759771c19 /fracture
parentee90417e15bb33e18f995600b6e761ca87e3a63e (diff)
Make id mandatory
Diffstat (limited to 'fracture')
-rw-r--r--fracture/__main__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/fracture/__main__.py b/fracture/__main__.py
index e7700f3..90f2dd3 100644
--- a/fracture/__main__.py
+++ b/fracture/__main__.py
@@ -139,7 +139,6 @@ def summarize(xlsx=False, year=None, quarter=None):
@command
def render(id, template=None, type=None, list_templates=None):
-
if list_templates:
# List the template directory and exit
print("Current templatedir:", TEMPLATE_DIR)
@@ -199,7 +198,7 @@ if __name__ == "__main__":
# Render invoice
summary_parser = subparsers.add_parser("render", aliases=["rend", "r"],
help="Render chosen invoice in the format defined by a template")
- summary_parser.add_argument("id", nargs="?", type=str,
+ summary_parser.add_argument("id", type=str,
help="Invoice identification string")
summary_parser.add_argument("--type", type=str,
help="Invoice type", default="sent")
@@ -214,7 +213,7 @@ if __name__ == "__main__":
# jsonify
json_parser = subparsers.add_parser("json", aliases=["j"],
help="Dump chosen invoice in json format")
- json_parser.add_argument("id", nargs="?", type=str,
+ json_parser.add_argument("id", type=str,
help="Invoice identification string")
json_parser.add_argument("--type", type=str,
help="Invoice type", default="sent")