Index: /trunk/include/iprt/getopt.h
===================================================================
--- /trunk/include/iprt/getopt.h	(revision 26693)
+++ /trunk/include/iprt/getopt.h	(revision 26694)
@@ -373,5 +373,5 @@
  * @param   pValueUnion The value union returned by RTGetOpt.
  */
-RTDECL(int) RTGetOptPrintError(int ch, PCRTGETOPTUNION pValueUnion);
+RTDECL(RTEXITCODE) RTGetOptPrintError(int ch, PCRTGETOPTUNION pValueUnion);
 
 /**
Index: /trunk/src/VBox/Runtime/common/misc/getopt.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/misc/getopt.cpp	(revision 26693)
+++ /trunk/src/VBox/Runtime/common/misc/getopt.cpp	(revision 26694)
@@ -750,5 +750,5 @@
 
 
-RTDECL(int) RTGetOptPrintError(int ch, PCRTGETOPTUNION pValueUnion)
+RTDECL(RTEXITCODE) RTGetOptPrintError(int ch, PCRTGETOPTUNION pValueUnion)
 {
     if (ch == VINF_GETOPT_NOT_OPTION)
@@ -768,5 +768,5 @@
         RTMsgError("%Rrs\n", ch);
 
-    return 2; /** @todo add defines for EXIT_SUCCESS, EXIT_FAILURE, EXIT_INVAL, etc... */
+    return RTEXITCODE_SYNTAX;
 }
 RT_EXPORT_SYMBOL(RTGetOptPrintError);
