From 74553248d5e5e3b5e60a8b40c80a2514d5d48884 Mon Sep 17 00:00:00 2001 From: Glutexo Date: Sat, 9 Nov 2024 19:39:53 +0100 Subject: [PATCH] Rename parsed_switches to switches For conciseness. --- lib/cli.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.ex b/lib/cli.ex index 6a76a11..2a66d1f 100644 --- a/lib/cli.ex +++ b/lib/cli.ex @@ -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) _ ->