chshersh / iris

🌈 Haskell CLI Framework supporting Command Line Interface Guidelines
https://hackage.haskell.org/package/iris
Mozilla Public License 2.0
182 stars 22 forks source link

Tests for CLI #13

Open chshersh opened 2 years ago

chshersh commented 2 years ago

CLI guidelines suggestion the following convention for named arguments:

Is it possible to check such things with optparse-applicative? 🤔

zetkez commented 2 years ago

Hi, its possible to check all three points. In optparse-applicative-common are low level function which can be used to check all three points. mapParser (\_ x -> optionNames . optMain $ x) sampleParser gives the list of defined parsers.

What can be done here for this ticket?