Index: /trunk/include/iprt/getopt.h
===================================================================
--- /trunk/include/iprt/getopt.h	(revision 31396)
+++ /trunk/include/iprt/getopt.h	(revision 31397)
@@ -38,5 +38,6 @@
  */
 
-/** @name RTGETOPTDEF::fFlags
+/** @name Values for RTGETOPTDEF::fFlags and the fFlags parameter of
+ *        RTGetOptFetchValue.
  *
  * @remarks When neither of the RTGETOPT_FLAG_HEX, RTGETOPT_FLAG_OCT and RTGETOPT_FLAG_DEC
@@ -262,5 +263,7 @@
 int main(int argc, char **argv)
 {
-     RTR3Init();
+     int rc = RTR3Init();
+     if (RT_FAILURE(rc))
+         return RTMsgInitFailure(rc);
 
      static const RTGETOPTDEF s_aOptions[] =
@@ -301,5 +304,5 @@
      }
 
-     return 0;
+     return RTEXITCODE_SUCCESS;
 }
    @endcode
@@ -347,5 +350,5 @@
  *                      that require an argument, this contains the value of
  *                      that argument, depending on the type that is required.
- * @param   fFlags      The flags.
+ * @param   fFlags      What to get, that is RTGETOPT_REQ_XXX.
  */
 RTDECL(int) RTGetOptFetchValue(PRTGETOPTSTATE pState, PRTGETOPTUNION pValueUnion, uint32_t fFlags);
