Skip to content

Commit 16409b6

Browse files
committed
Fix parsing enforce-transcoding in CLI
1 parent 813f611 commit 16409b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lib/boombox/utils/cli.ex

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule Boombox.Utils.CLI do
2525
vps: {:string, :binary},
2626
whip: {:string, :string},
2727
token: {:string, :string},
28-
enforce_transcoding: {:string, :atom}
28+
enforce_transcoding: {:boolean, :boolean}
2929
]
3030

3131
@spec parse_argv([String.t()]) ::
@@ -96,6 +96,9 @@ defmodule Boombox.Utils.CLI do
9696
[{direction, true}, {endpoint, value} | opts] ->
9797
{direction, {endpoint, value, translate_opts(opts)}}
9898

99+
[{direction, value} | opts] ->
100+
{direction, value, translate_opts(opts)}
101+
99102
[{direction, value}] ->
100103
{direction, value}
101104

0 commit comments

Comments
 (0)