Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Look for similar arguments when unsupported arguments are detected #28

Open
vinivendra opened this issue May 1, 2020 · 4 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@vinivendra
Copy link
Owner

Try guessing if the user made a typo in an unsupported argument and suggesting a fix (for instance, using the Levenshtein distance).

@vinivendra vinivendra added the enhancement New feature or request label May 1, 2020
@vinivendra vinivendra added the good first issue Good for newcomers label May 20, 2020
@simoalx
Copy link

simoalx commented Oct 1, 2020

I can take a look at this if you like!

@vinivendra
Copy link
Owner Author

Yes, that’d be great!

The arguments are handled in Driver.swift, so that’s a good place to start. If you need any help, let me know.

@simoalx
Copy link

simoalx commented Oct 1, 2020

simoalx@7ee8e00

Does this look like the sort of thing that you want? I need to clean it up and add some tests, but seems like it might be along the right lines

@vinivendra
Copy link
Owner Author

Yeah, that's pretty much what I had in mind 👍

I'd just be careful overloading the pattern matching operator (~=) because I'm afraid it might cause problems somewhere else in the code, but other than that this looks pretty good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants