SamuelSchlesinger / commander-cli

A simple library I wrote to allow me to quickly and easily construct command line interfaces.
MIT License
29 stars 2 forks source link

document default with statically checked defaults #22

Closed BebeSparkelSparkel closed 3 years ago

BebeSparkelSparkel commented 3 years ago

Allows the default values to be put in the code but I am having problems where there are not default values because I have nothing to pass into the function to produce ProgramT.

I have modified HasProgram documentation to documentation :: ProgramT p m a -> Forest String so that I can get the default value when creating the documentation.

Options.Commander.Environment contains my problem in EnvProgramT'Required { unEnvProgramT'Required :: t -> ProgramT p m a } because t does not exist.

Do you know anyways around this?

Issue #20 Trying to solve the same problem as #21

BebeSparkelSparkel commented 3 years ago

realized that even with default values it is possible to create bad docs because different possible to go down different paths to create the next ProgramT