Standardize exit codes for samples.

Fixes #909 #910

PiperOrigin-RevId: 782951003
Change-Id: I093c0032f665bf34fecf71a75012b2b0c4c22aba
This commit is contained in:
Yuval Tassa
2025-07-14 10:14:36 -07:00
committed by Copybara-Service
parent 9a41d385c1
commit 5187a712be
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -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;
}