Change type of program options to 'IO [Options]'
Some options have defaults that depend on the environment, and we could handle these in two ways: - use a place-holder value (e.g. data X a = Default | Custom a) that is later read from the environment - move the options list to IO monad, where it can read the environment, etc. The second option allows also displaying the actual defaults in the `--help' output, even though it's not as nice, so I went with it. This patch only changes the option types, without actually changing any options yet. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
Showing
- htest/Test/Ganeti/HTools/CLI.hs 4 additions, 2 deletionshtest/Test/Ganeti/HTools/CLI.hs
- htools/Ganeti/HTools/Program.hs 2 additions, 1 deletionhtools/Ganeti/HTools/Program.hs
- htools/Ganeti/HTools/Program/Hail.hs 8 additions, 7 deletionshtools/Ganeti/HTools/Program/Hail.hs
- htools/Ganeti/HTools/Program/Hbal.hs 29 additions, 28 deletionshtools/Ganeti/HTools/Program/Hbal.hs
- htools/Ganeti/HTools/Program/Hcheck.hs 25 additions, 24 deletionshtools/Ganeti/HTools/Program/Hcheck.hs
- htools/Ganeti/HTools/Program/Hinfo.hs 12 additions, 11 deletionshtools/Ganeti/HTools/Program/Hinfo.hs
- htools/Ganeti/HTools/Program/Hscan.hs 8 additions, 7 deletionshtools/Ganeti/HTools/Program/Hscan.hs
- htools/Ganeti/HTools/Program/Hspace.hs 21 additions, 20 deletionshtools/Ganeti/HTools/Program/Hspace.hs
- htools/htools.hs 2 additions, 1 deletionhtools/htools.hs
Loading
Please register or sign in to comment