mirror of
https://github.com/boostorg/inspect.git
synced 2026-07-21 13:23:31 +00:00
Distinguish between error statuses.
This commit is contained in:
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user