From cc6d04b96944dbc17da498d17c4f36a9ea75b874 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 17 Mar 2021 17:33:36 +0200 Subject: Naming cleanup --- verify.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/verify.py b/verify.py index 35eccc0..e657ef2 100644 --- a/verify.py +++ b/verify.py @@ -123,7 +123,7 @@ class GreenPassVerifier(object): type=click.Path(exists=True), help="Path to decoded QR code textual content", ) -def verify_cmd(pdf_path="", image_path="", txt_path=""): +def verify(pdf_path="", image_path="", txt_path=""): if image_path: verifier = GreenPassVerifier.from_qr(image_path) elif pdf_path: @@ -134,9 +134,8 @@ def verify_cmd(pdf_path="", image_path="", txt_path=""): ctx = click.get_current_context() click.echo(ctx.get_help()) ctx.exit() - verifier.verify() if __name__ == "__main__": - verify_cmd() + verify() -- cgit v1.3.1