Errors in the command line causes error mesage and zero exit status
Multi-language source code documentation tool
Brought to you by:
gregvalure
If there are errors in the command line, NaturalDocs prints error message (that's right) and exits with status zero, which is wrong, because zero exit status means "success".
The problem is in Settings.pm:
1169 if (scalar @errorMessages) 1170 { 1171 print join("\n", @errorMessages) . "\nType NaturalDocs -h to see the syntax reference.\n"; 1172 exit; 1173 }; 1174 };
Line 1172 should be:
1172 exit 1;
Exit status may be any (unless it documented) but non-zero.
Patch is attached.