return None directly when the Levenshtein distance is 0, indicating that the subcommand is correct.
set a threshold for the distance, beyond which no suggestions are provided.
Currently, the size of the command is not that large, so we are simply comparing it with levenshtein distance, but if the command grows later, we may need to consider using other string algorithms.
suggesting a subcommand when a typo is detected.
None
directly when the Levenshtein distance is0
, indicating that the subcommand is correct.Currently, the size of the command is not that large, so we are simply comparing it with levenshtein distance, but if the command grows later, we may need to consider using other string algorithms.