diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 881e2a4..ae0a12b 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -222,7 +222,7 @@ Command prepareCommand(string name, CommandArgs args) { auto cmd = getCommand(name); - if (cmd !is null || cast(HelpCommand)cmd !is null) + if (cmd !is null && !(cast(HelpCommand)cmd)) { // process command line options for the selected command cmd.prepare(args);