Skip to content

Commit

Permalink
Merge pull request #246 from Glutexo/parsed-switches
Browse files Browse the repository at this point in the history
Rename parsed_switches to switches
  • Loading branch information
nappex authored Nov 9, 2024
2 parents a4e350e + 7455324 commit bf0cdad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ defmodule Onigumo.CLI do
aliases: [C: :working_dir],
strict: [working_dir: :string]
) do
{parsed_switches, [component], []} ->
{switches, [component], []} ->
{:ok, module} = Map.fetch(@components, String.to_atom(component))
working_dir = Keyword.get(parsed_switches, :working_dir, File.cwd!())
working_dir = Keyword.get(switches, :working_dir, File.cwd!())
module.main(working_dir)

_ ->
Expand Down

0 comments on commit bf0cdad

Please sign in to comment.