Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some invalid options show "is unrecognized" while some crash the process #2

Open
ProductiveRage opened this issue Sep 5, 2016 · 0 comments

Comments

@ProductiveRage
Copy link

I accidentally used "/P" instead of "/PW" and got an exception thrown:

Unhandled Exception: Microsoft.FSharp.Core.MatchFailureException: The match cases were incomplete
at SQLient.CommandLine.parseCommandLineRec(FSharpList1 args, CommandLineOptions optionsSoFar) in C:\Users\droberts\Documents\GitHub\sqlient\SQLient\CommandLine.fs:line 38 at SQLient.CommandLine.parseCommandLine(FSharpList1 args) in C:\Users\droberts\Documents\GitHub\sqlient\SQLient\CommandLine.fs:line 63
at SQLient.Main.main(String[] args) in C:\Users\droberts\Documents\GitHub\sqlient\SQLient\Program.fs:line 27

Trying another invalid option ("/O", selected for no reason of than it was the key next to "P") does not result in an exception, instead the following is displayed -

Option '/O' is unrecognized
Error. "Server needs to be specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant