summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2021-03-17 17:33:36 +0200
committerYuval Adam <_@yuv.al>2021-03-17 17:33:36 +0200
commitcc6d04b96944dbc17da498d17c4f36a9ea75b874 (patch)
treee72417450aa93265cb4a69eb0398496d00c686d9
parentf03f2c98e28136e77792e078e54a6fc768f5d460 (diff)
Naming cleanup
-rw-r--r--verify.py5
1 files 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()