diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 4f88473..90d51a2 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -658,6 +658,12 @@ args.getopt("f|force", &m_force, [ "Forces a recompilation even if the target is up to date" ]); + bool coverage = false; + args.getopt("coverage", &coverage, [ + "Enables code coverage statistics to be generated." + ]); + if( coverage ) + m_buildType = "unittest-cov"; super.prepare(args); }