Fixed bug #1203, -CMDHELP should be printed to stdout

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6982 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2018-02-04 21:19:55 +00:00
parent 696a317eca
commit 8f9cc7ff35
4 changed files with 15 additions and 7 deletions

View file

@ -479,11 +479,8 @@ static inline int makensismain(int argc, TCHAR **argv)
}
else if (!_tcsicmp(swname,_T("CMDHELP")))
{
if (argpos < argc-1)
build.print_help(argv[++argpos]);
else
build.print_help(NULL);
performed |= ++nousage;
if (build.print_cmdhelp(argpos < argc-1 ? argv[++argpos] : NULL, true))
performed |= ++nousage;
}
else if (!_tcsicmp(swname,_T("HDRINFO")))
{