From 14cd97e1e273f00bba77eaa5fcd6f61a5da1367c Mon Sep 17 00:00:00 2001 From: Florian Meinicke Date: Mon, 15 Jan 2024 16:23:01 +0100 Subject: [PATCH] Add types and help strings for the positional arguments --- paperless_asn_qr_codes/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paperless_asn_qr_codes/main.py b/paperless_asn_qr_codes/main.py index d7b4907..5dd455b 100644 --- a/paperless_asn_qr_codes/main.py +++ b/paperless_asn_qr_codes/main.py @@ -2,6 +2,7 @@ import argparse from reportlab.lib.units import mm from reportlab_qrcode import QRCodeImage + from paperless_asn_qr_codes import avery_labels @@ -21,8 +22,8 @@ def main(): prog="paperless-asn-qr-codes", description="CLI Tool for generating paperless ASN labels with QR codes", ) - parser.add_argument("start_asn") - parser.add_argument("output_file") + parser.add_argument("start_asn", type=int, help="The value of the first ASN") + parser.add_argument("output_file", type=str, help="The output file to write to") parser.add_argument( "--format", choices=avery_labels.labelInfo.keys(), default="averyL4731" )