diff --git a/source/dub/dependency.d b/source/dub/dependency.d index 3aa7c87..cbb5e2d 100644 --- a/source/dub/dependency.d +++ b/source/dub/dependency.d @@ -253,7 +253,10 @@ string toString()() const { auto ret = versionSpec; - if (optional) ret ~= " (optional)"; + if (optional) { + if (default_) ret ~= " (optional, default)"; + else ret ~= " (optional)"; + } if (!path.empty) ret ~= " @"~path.toNativeString(); return ret; }