Distinguish between error statuses.

This commit is contained in:
Daniel James
2016-07-29 13:19:41 +01:00
parent 7cb1d297c2
commit 92987d6928
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -133,6 +133,13 @@ There are two types of options allowed, ones that control general operation and
[endsect]
[section:exit Exit Status]
Exit status return 0 if no checks failed, 1 if at least one check failed,
2 for other types of errors (such as an invalid command line).
[endsect]
[section:checks Checks]
[endsect]
+1 -1
View File
@@ -840,7 +840,7 @@ int cpp_main( int argc_param, char * argv_param[] )
if ( invalid_options ) {
std::cerr << "\nvalid options are:\n"
<< options();
return 1;
return 2;
}
if (options_not_set) {