From da536566095638e7c582333f92ef2c81bc75ead9 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 27 Sep 2022 21:13:58 +0200 Subject: [PATCH] Fix: syntax for on command --- pdf_oralia/scripts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pdf_oralia/scripts.py b/pdf_oralia/scripts.py index 3fb7aa8..3543ba6 100644 --- a/pdf_oralia/scripts.py +++ b/pdf_oralia/scripts.py @@ -16,9 +16,12 @@ def extract(): @extract.command() -@click.argument("pdf_file", help="Nom du fichier pdf") +@click.argument("pdf_file", required=1) def on(pdf_file): - extract_save(pdf_file) + pdf_path = Path(pdf_file) + pdf_filename = pdf_path.name + pdf_path = pdf_path.parent + extract_save(pdf_file, pdf_path) @extract.command()