Fix: syntax for on command

This commit is contained in:
Bertrand Benjamin 2022-09-27 21:13:58 +02:00
parent 8a279847ae
commit da53656609

View File

@ -16,9 +16,12 @@ def extract():
@extract.command() @extract.command()
@click.argument("pdf_file", help="Nom du fichier pdf") @click.argument("pdf_file", required=1)
def on(pdf_file): 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() @extract.command()