Fix: syntax for on command

This commit is contained in:
Bertrand Benjamin 2022-09-27 21:13:58 +02:00
parent 8a279847ae
commit da53656609
1 changed files with 5 additions and 2 deletions

View File

@ -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()