soenkehahn / getopt-generics

Create command line interfaces with ease
Other
41 stars 3 forks source link

Fix help output for positional arguments. #29

Closed soenkehahn closed 9 years ago

soenkehahn commented 9 years ago

This PR means that the meaning of the first parameter to parseArguments changes from header to progName. What it gives us is a slightly better help output:

Example.hs [OPTIONS]
      --bar=string
      --baz=string (optional)
      --qux=integer
  -h  --help                   show help and exit

Any opinion?

tuleism commented 9 years ago

LGTM