diff --git a/driver/main.cpp b/driver/main.cpp index f349cc4a..37b66122 100644 --- a/driver/main.cpp +++ b/driver/main.cpp @@ -202,6 +202,9 @@ static void parseCommandLine(int argc, char **argv, Strings &sourceFiles, bool & #endif ); + helpOnly = mCPU == "help" || + (std::find(mAttrs.begin(), mAttrs.end(), "help") != mAttrs.end()); + // Print config file path if -v was passed if (global.params.verbose) { const std::string& path = cfg_file.path();