diff --git a/README.md b/README.md index 2edca5b..911d1a2 100644 --- a/README.md +++ b/README.md @@ -440,6 +440,15 @@ The creation of the `--help` option can be disabled by passing `null` as the constructing a `HelpFormatter` instance. In the above example a `DefaultHelpFormatter` was created with the prologue and epilogue. +For correct show help message you must add handler for help exception: +``` +val parser = try { + ArgParser(args).parseInfo(::YourParser) +} catch (e: ShowHelpException) { + e.printAndExit() +} +``` + ## Caveats