From db9e234b8dbd8be06af7b7cc12ff4d03845ca4cf Mon Sep 17 00:00:00 2001 From: John Carter Date: Sat, 11 Jan 2020 12:04:25 +1300 Subject: [PATCH] Fix --signature-type option Resolves #3 --- src/functions_framework/cli.py | 2 +- tests/test_cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions_framework/cli.py b/src/functions_framework/cli.py index 8fb295ba..15484b79 100644 --- a/src/functions_framework/cli.py +++ b/src/functions_framework/cli.py @@ -23,7 +23,7 @@ @click.option("--target", envvar="FUNCTION_TARGET", type=click.STRING, required=True) @click.option("--source", envvar="FUNCTION_SOURCE", type=click.Path(), default=None) @click.option( - "--signature_type", + "--signature-type", envvar="FUNCTION_SIGNATURE_TYPE", type=click.Choice(["http", "event"]), default="http", diff --git a/tests/test_cli.py b/tests/test_cli.py index f6fac8ff..ed92b9df 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -55,7 +55,7 @@ def test_cli_no_arguments(): pretend.call("foo", "/path/to/source.py", "http"), ), ( - ["--target", "foo", "--signature_type", "event"], + ["--target", "foo", "--signature-type", "event"], {}, pretend.call("foo", None, "event"), ),