strip the args for commands

This commit is contained in:
Paul Gauthier 2024-08-31 14:31:25 -07:00
parent 59a9409caa
commit 7c013dba6a

View file

@ -199,7 +199,7 @@ class Commands:
return
first_word = words[0]
rest_inp = inp[len(words[0]) :]
rest_inp = inp[len(words[0]) :].strip()
all_commands = self.get_commands()
matching_commands = [cmd for cmd in all_commands if cmd.startswith(first_word)]