diff --git a/lib/mix/tasks/sobelow.ex b/lib/mix/tasks/sobelow.ex index 8aeb96d..fc7bb05 100644 --- a/lib/mix/tasks/sobelow.ex +++ b/lib/mix/tasks/sobelow.ex @@ -182,7 +182,7 @@ defmodule Mix.Tasks.Sobelow do !is_nil(details) -> Sobelow.details() - !is_nil(version) -> + version -> Sobelow.version() true -> diff --git a/lib/sobelow.ex b/lib/sobelow.ex index 0658a8c..af11455 100644 --- a/lib/sobelow.ex +++ b/lib/sobelow.ex @@ -248,7 +248,8 @@ defmodule Sobelow do out: get_env(:out), threshold: get_env(:threshold), ignore: get_env(:ignored), - ignore_files: get_env(:ignored_files) + ignore_files: get_env(:ignored_files), + version: get_env(:version) ] yes? =