{"action":"created","issue":{"url":"https://api.github.com/repos/xenomachina/kotlin-argparser/issues/20","repository_url":"https://api.github.com/repos/xenomachina/kotlin-argparser","labels_url":"https://api.github.com/repos/xenomachina/kotlin-argparser/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/xenomachina/kotlin-argparser/issues/20/comments","events_url":"https://api.github.com/repos/xenomachina/kotlin-argparser/issues/20/events","html_url":"https://github.com/xenomachina/kotlin-argparser/issues/20","id":239156275,"number":20,"title":"ShowHelpException not caught","user":{"login":"passy","id":9906,"avatar_url":"https://avatars1.githubusercontent.com/u/9906?v=4","gravatar_id":"","url":"https://api.github.com/users/passy","html_url":"https://github.com/passy","followers_url":"https://api.github.com/users/passy/followers","following_url":"https://api.github.com/users/passy/following{/other_user}","gists_url":"https://api.github.com/users/passy/gists{/gist_id}","starred_url":"https://api.github.com/users/passy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/passy/subscriptions","organizations_url":"https://api.github.com/users/passy/orgs","repos_url":"https://api.github.com/users/passy/repos","events_url":"https://api.github.com/users/passy/events{/privacy}","received_events_url":"https://api.github.com/users/passy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-28T13:01:18Z","updated_at":"2017-09-29T14:27:40Z","closed_at":"2017-06-28T13:15:27Z","author_association":"NONE","body":"Apologies if I'm misunderstanding something here, but from looking at the implementation it doesn't seem like anything is catching `com.xenomachina.argparser.ShowHelpException: Help was requested` and if I start my application with `-h` or `--help`, I see the exception stacktrace rather than the help text:\r\n\r\n```\r\nException in thread \"main\" com.xenomachina.argparser.ShowHelpException: Help was requested\r\n        at com.xenomachina.argparser.ArgParser$1.invoke(ArgParser.kt:590)\r\n        at com.xenomachina.argparser.ArgParser$1.invoke(ArgParser.kt:38)\r\n        at com.xenomachina.argparser.OptionDelegate.parseOption(OptionDelegate.kt:60)\r\n        at com.xenomachina.argparser.ArgParser.parseShortOpts(ArgParser.kt:576)\r\n        at com.xenomachina.argparser.ArgParser.access$parseShortOpts(ArgParser.kt:38)\r\n        at com.xenomachina.argparser.ArgParser$parseOptions$2.invoke(ArgParser.kt:473)\r\n        at com.xenomachina.argparser.ArgParser$parseOptions$2.invoke(ArgParser.kt:38)\r\n        at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:130)\r\n        at com.xenomachina.argparser.ArgParser.getParseOptions(ArgParser.kt)\r\n        at com.xenomachina.argparser.ArgParser.force(ArgParser.kt:447)\r\n        at com.xenomachina.argparser.ParsingDelegate.getValue(ParsingDelegate.kt:39)\r\n        at com.xenomachina.argparser.ArgParser$Delegate.getValue(ArgParser.kt:340)\r\n        at myapp.TestRunnerArgs.getTests(testRunner.kt)\r\n```\r\n\r\nIs this expected? Do I need to catch this myself and delegate to the help formatter?"},"comment":{"url":"https://api.github.com/repos/xenomachina/kotlin-argparser/issues/comments/333141462","html_url":"https://github.com/xenomachina/kotlin-argparser/issues/20#issuecomment-333141462","issue_url":"https://api.github.com/repos/xenomachina/kotlin-argparser/issues/20","id":333141462,"user":{"login":"sifraser","id":1948117,"avatar_url":"https://avatars1.githubusercontent.com/u/1948117?v=4","gravatar_id":"","url":"https://api.github.com/users/sifraser","html_url":"https://github.com/sifraser","followers_url":"https://api.github.com/users/sifraser/followers","following_url":"https://api.github.com/users/sifraser/following{/other_user}","gists_url":"https://api.github.com/users/sifraser/gists{/gist_id}","starred_url":"https://api.github.com/users/sifraser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sifraser/subscriptions","organizations_url":"https://api.github.com/users/sifraser/orgs","repos_url":"https://api.github.com/users/sifraser/repos","events_url":"https://api.github.com/users/sifraser/events{/privacy}","received_events_url":"https://api.github.com/users/sifraser/received_events","type":"User","site_admin":false},"created_at":"2017-09-29T14:27:40Z","updated_at":"2017-09-29T14:27:40Z","author_association":"NONE","body":"I didn't get it either.. but you need:\r\n`fun main(args: Array<String>) = mainBody {\r\n    <your code>\r\n}`"}}
{"actor":{"display_login":"sifraser"}}