Standardize exit codes for samples.
Fixes #909 #910 PiperOrigin-RevId: 782951003 Change-Id: I093c0032f665bf34fecf71a75012b2b0c4c22aba
This commit is contained in:
committed by
Copybara-Service
parent
9a41d385c1
commit
5187a712be
+2
-2
@@ -219,7 +219,7 @@ int main(int argc, const char** argv) {
|
||||
// check command-line arguments
|
||||
if (argc < 5 || argc > 6) {
|
||||
std::printf(" USAGE: record modelfile duration fps rgbfile [adddepth]\n");
|
||||
return 0;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// parse numeric arguments
|
||||
@@ -321,5 +321,5 @@ int main(int argc, const char** argv) {
|
||||
closeMuJoCo();
|
||||
closeOpenGL();
|
||||
|
||||
return 1;
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user