Skip to content

Commit

Permalink
Rename parse_result to parsed
Browse files Browse the repository at this point in the history
For consistency with the parsed_switches variable.
  • Loading branch information
Glutexo committed Nov 9, 2024
1 parent 86554bc commit e3a0cee
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 @@ -4,10 +4,10 @@ defmodule Onigumo.CLI do
}

def main(argv) do
parse_result =
parsed =
OptionParser.parse(argv, aliases: [C: :working_dir], strict: [working_dir: :string])

with {parsed_switches, [component], []} <- parse_result do
with {parsed_switches, [component], []} <- parsed do
{:ok, module} = Map.fetch(@components, String.to_atom(component))
working_dir = Keyword.get(parsed_switches, :working_dir, File.cwd!())
module.main(working_dir)
Expand Down

0 comments on commit e3a0cee

Please sign in to comment.