Skip to content

Commit

Permalink
Added case insensitivity to edit command. Fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsoc12 committed Jan 15, 2024
1 parent f948117 commit 3bac5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firefly_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def do_edit(self, argslist):
f"The command 'edit' takes exactly two arguments. Provided: {' '.join(argslist)}"
)
else:
if argslist[0] == "url" or argslist[0] == "api_token":
if argslist[0].casefold() == "url" or argslist[0].casefold() == "api_token":
self.configs["firefly-cli"][argslist[0]] = argslist[1]
save_configs_to_file(self.configs)
self.api = FireflyAPI.refresh_api(self.configs)
Expand Down

0 comments on commit 3bac5d6

Please sign in to comment.