Skip to content

Commit a93dd5f

Browse files
authored
Added case insensitivity to edit command. Fixes #17 (#19)
1 parent f948117 commit a93dd5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firefly_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def do_edit(self, argslist):
104104
f"The command 'edit' takes exactly two arguments. Provided: {' '.join(argslist)}"
105105
)
106106
else:
107-
if argslist[0] == "url" or argslist[0] == "api_token":
107+
if argslist[0].casefold() == "url" or argslist[0].casefold() == "api_token":
108108
self.configs["firefly-cli"][argslist[0]] = argslist[1]
109109
save_configs_to_file(self.configs)
110110
self.api = FireflyAPI.refresh_api(self.configs)

0 commit comments

Comments
 (0)