Skip to content

Error on unrecognized input

Choose a tag to compare

@tanner0101 tanner0101 released this 26 Jun 18:32
05c52a9
This patch was authored and released by @tanner0101.

Updates ConsoleKit to throw an error if unrecognized input is passed (#144).

ConsoleKit currently ignores any input it is unable to parse. This makes simple typos confusing to debug, for example:

$ vapor run serve --port=1337
Running on localhost:8080

In the above example, invalid option syntax is being used. However, ConsoleKit simply ignores it.

After this update, invalid syntax will result in an error:

$ vapor run serve --port=1337
Error: Input not recognized: --port=1337