mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fixes ticket 457 from dsource.org.
-mattr=help does not printout help without source file
This commit is contained in:
@@ -237,6 +237,8 @@ int main(int argc, char** argv)
|
||||
printf("config %s\n", path.c_str());
|
||||
}
|
||||
|
||||
bool skipModules = mCPU == "help" ||(!mAttrs.empty() && mAttrs.front() == "help");
|
||||
|
||||
// Negated options
|
||||
global.params.link = !compileOnly;
|
||||
global.params.obj = !dontWriteObj;
|
||||
@@ -315,7 +317,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
fatal();
|
||||
}
|
||||
if (files.dim == 0)
|
||||
if (files.dim == 0 && !skipModules)
|
||||
{
|
||||
cl::PrintHelpMessage();
|
||||
return EXIT_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user