mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 23:50:43 +03:00
Fixes ticket 457 from dsource.org.
-mattr=help does not printout help without source file
This commit is contained in:
parent
e144d8d4ad
commit
8d06145ac0
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue