Answer the question
In order to leave comments, you need to log in
How to make commands with "similar" text?
There is a command: "help"
How can I make it run on "hrlp" as well, but without adding every possible error to execution?
Answer the question
In order to leave comments, you need to log in
If the set of possible commands is small, then the Levenshtein distance will suit you, with which command the distance is minimal - that is what the user meant, well, it’s worth keeping a certain threshold value, if all commands are “further” than this value, then nonsense has been introduced
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question