Skip to content

Commit

Permalink
Merge branch 'master' into with
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutexo committed Nov 9, 2024
2 parents e3a0cee + fcfea46 commit 33d65f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.12.3'
otp-version: '24.1'
elixir-version: latest
otp-version: latest
- name: Restore dependencies cache
uses: actions/cache@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions lib/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ defmodule Onigumo.CLI do
parsed =
OptionParser.parse(argv, aliases: [C: :working_dir], strict: [working_dir: :string])

with {parsed_switches, [component], []} <- parsed do
with {switches, [component], []} <- parsed do
{: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)
else
_ -> usage_message()
Expand Down

0 comments on commit 33d65f8

Please sign in to comment.