diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 4d1b44e..d553d8b 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -347,18 +347,15 @@ string m_defaultConfig; bool m_nodeps; bool m_forceRemove = false; - bool m_disableBuildOption = false; } override void prepare(scope CommandArgs args) { - if (!m_disableBuildOption) { - args.getopt("b|build", &m_buildType, [ - "Specifies the type of build to perform. Note that setting the DFLAGS environment variable will override the build type with custom flags.", - "Possible names:", - " debug (default), plain, release, release-nobounds, unittest, profile, docs, ddox, cov, unittest-cov and custom types" - ]); - } + args.getopt("b|build", &m_buildType, [ + "Specifies the type of build to perform. Note that setting the DFLAGS environment variable will override the build type with custom flags.", + "Possible names:", + " debug (default), plain, release, release-nobounds, unittest, profile, docs, ddox, cov, unittest-cov and custom types" + ]); args.getopt("c|config", &m_buildConfig, [ "Builds the specified configuration. Configurations can be defined in dub.json" ]); @@ -661,7 +658,6 @@ this.acceptsAppArgs = true; m_buildType = "unittest"; - m_disableBuildOption = true; } override void prepare(scope CommandArgs args)