Skip to content

Commit 1c03225

Browse files
therefromheredi
andcommitted
Fix --signature-type option (#4)
Resolves #3 Co-authored-by: Dustin Ingram <[email protected]>
1 parent bad0d9e commit 1c03225

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/functions_framework/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@click.option("--target", envvar="FUNCTION_TARGET", type=click.STRING, required=True)
2424
@click.option("--source", envvar="FUNCTION_SOURCE", type=click.Path(), default=None)
2525
@click.option(
26-
"--signature_type",
26+
"--signature-type",
2727
envvar="FUNCTION_SIGNATURE_TYPE",
2828
type=click.Choice(["http", "event"]),
2929
default="http",

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_cli_no_arguments():
5555
pretend.call("foo", "/path/to/source.py", "http"),
5656
),
5757
(
58-
["--target", "foo", "--signature_type", "event"],
58+
["--target", "foo", "--signature-type", "event"],
5959
{},
6060
pretend.call("foo", None, "event"),
6161
),

0 commit comments

Comments
 (0)