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 Symbol in type #21

Closed BebeSparkelSparkel closed 3 years ago

BebeSparkelSparkel commented 3 years ago

This puts the default value as a Symbol in the Opt type.

BebeSparkelSparkel commented 3 years ago

20

BebeSparkelSparkel commented 3 years ago

This should not be pulled without scrutiny

BebeSparkelSparkel commented 3 years ago

This can now display the default values for options and environment variable while statically checking if unrender works on the default provided string value.

The following test files show how this looks in practice (look for Def in the test name) test/Options/Commander/OptionSpec.hs test/Options/Commander/EnvironmentSpec.hs

SamuelSchlesinger commented 3 years ago

This change is far too large for me to feel comfortable reviewing and merging in one go. Please break it up into more bite sized changes so I can feel confident that it is correct and desirable. Anyways, I'm grateful for all of the cleanup and refactoring work you've been doing 👍