Remove generic options from individual programs
Currently, we test and require that each individual program (hbal, etc.) defines/supports the generic options (currently --help and --version). Even with the test, this is not optimal, since it requires changes in many places whenever we modify the list of generic options, hence we move these out of the individual programs and into the generic CLI handling code. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
Showing
- htest/Test/Ganeti/HTools/CLI.hs 2 additions, 2 deletionshtest/Test/Ganeti/HTools/CLI.hs
- htools/Ganeti/Daemon.hs 7 additions, 1 deletionhtools/Ganeti/Daemon.hs
- htools/Ganeti/HTools/CLI.hs 7 additions, 0 deletionshtools/Ganeti/HTools/CLI.hs
- htools/Ganeti/HTools/Program/Hail.hs 0 additions, 2 deletionshtools/Ganeti/HTools/Program/Hail.hs
- htools/Ganeti/HTools/Program/Hbal.hs 0 additions, 2 deletionshtools/Ganeti/HTools/Program/Hbal.hs
- htools/Ganeti/HTools/Program/Hcheck.hs 0 additions, 2 deletionshtools/Ganeti/HTools/Program/Hcheck.hs
- htools/Ganeti/HTools/Program/Hinfo.hs 0 additions, 2 deletionshtools/Ganeti/HTools/Program/Hinfo.hs
- htools/Ganeti/HTools/Program/Hscan.hs 0 additions, 2 deletionshtools/Ganeti/HTools/Program/Hscan.hs
- htools/Ganeti/HTools/Program/Hspace.hs 0 additions, 2 deletionshtools/Ganeti/HTools/Program/Hspace.hs
- htools/hconfd.hs 1 addition, 3 deletionshtools/hconfd.hs
- htools/htools.hs 2 additions, 2 deletionshtools/htools.hs
Loading
Please register or sign in to comment