optparse-applicative package provides very powerful tools for command-line arguments parsing. Among them is the automatic usage text generation, which is printe
optparse-applicative