diff --git a/source/dub/commandline.d b/source/dub/commandline.d index ae0a12b..038dff9 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -645,6 +645,8 @@ */ string[] extractRemainingArgs() { + assert(m_args !is null, "extractRemainingArgs must be called only once."); + auto ret = m_args[1 .. $]; m_args = null; return ret;