     new_config = %Execution{
       exec
       | strict: true,
-        only_checks: String.split(check_pattern, ",")
+        only_checks: String.split(check_pattern, @pattern_split_regex)
     }
 
     Execution.set_strict(new_config)

  end

  defp add_switch_ignore(exec, %{ignore_checks: ignore_pattern}) do
    %Execution{exec | ignore_checks: String.split(ignore_pattern, ",")}
  end

  defp add_switch_ignore(exec, _), do: exec

  alias Credo.CLI.Options
  alias Credo.ConfigFile
  alias Credo.Execution

  @pattern_split_regex ~r/,\s*/

  def parse(exec) do
    options = exec.cli_options
