mirror of
https://github.com/entropia/paperless-asn-qr-codes.git
synced 2024-05-09 11:26:44 +00:00
Add shorthand flags for --format
and --border
This commit is contained in:
parent
267c5c7011
commit
279a3ee0ea
|
@ -25,10 +25,11 @@ def main():
|
|||
parser.add_argument("start_asn", type=int, help="The value of the first ASN")
|
||||
parser.add_argument("output_file", type=str, default="labels.pdf", help="The output file to write to (default: labels.pdf)")
|
||||
parser.add_argument(
|
||||
"--format", choices=avery_labels.labelInfo.keys(), default="averyL4731"
|
||||
"--format", "-f", choices=avery_labels.labelInfo.keys(), default="averyL4731"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--border",
|
||||
"-b",
|
||||
action="store_true",
|
||||
help="Display borders around labels, useful for debugging the printer alignment",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue