Add unit-tests for --help/--version as common options
authorIustin Pop <iustin@google.com>
Sun, 15 Jan 2012 00:26:36 +0000 (01:26 +0100)
committerIustin Pop <iustin@google.com>
Mon, 16 Jan 2012 12:49:49 +0000 (13:49 +0100)
commita292b4e07b39f5d6f58c261164fb76d7ef334ad1
tree08ca2807724e256bd402899e4bf2d7f15b6d57bc
parent9f13be882f25a3aa8c6b410ae7844ce4017b108e
Add unit-tests for --help/--version as common options

After reorganizing the way we process options, we can finally add a
test that all program personalities accept --help and --version and
that they exit early for these two.

This trivial patch has a higher than expected impact on the coverage,
as the use of short options finally enforces evaluation of the short
option names, thus it affects more than just the help/version options.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htools/Ganeti/HTools/QC.hs