From da413356f1949402b7f4e4024a33077bddd60044 Mon Sep 17 00:00:00 2001 From: Feyo Korenhof <35343640+feyokorenhof@users.noreply.github.com> Date: Wed, 23 Nov 2022 23:47:01 +0100 Subject: [PATCH] rename 'cleare_console' to 'clear_console' Hi! Came across your reddit comment and was intrigued. While skimming the code I think I've found a bug. On `line 100` in `music_kraken_cli.py` the `cli` function looks like this: ```python def cli(start_at: int = 0, only_lyrics: bool = False, cleare_console: bool = True): if clear_console: clear_console() ``` the argument being passed in has an additional 'e' in it. The if statement below now just checks if the function 'clear_console' exists opposed to checking the argument. --- src/music_kraken_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music_kraken_cli.py b/src/music_kraken_cli.py index afe1ee6..fc3ae84 100644 --- a/src/music_kraken_cli.py +++ b/src/music_kraken_cli.py @@ -97,7 +97,7 @@ def get_genre(): return genre -def cli(start_at: int = 0, only_lyrics: bool = False, cleare_console: bool = True): +def cli(start_at: int = 0, only_lyrics: bool = False, clear_console: bool = True): if clear_console: clear_console()