Is there a way to get the usage block of optparse-aplicative parser outside the IO monad

48 Views Asked by At

optparse-applicative package provides very powerful tools for command-line arguments parsing. Among them is the automatic usage text generation, which is printed in case of parsing error or by --help option if the parser is used by execParser function inside the IO monad.

Is there any way to get the usage text if using execParserPure?

0

There are 0 best solutions below