Put the full help before the options
[folly.git] / folly / experimental / NestedCommandLineApp.cpp
index a50374a9489366002435f7f5b82456897dd3d0be..8904f3c7a1a88d0b6a5dcff50e9764d615099e69 100644 (file)
@@ -143,14 +143,14 @@ void NestedCommandLineApp::displayHelp(
         info.argStr.empty() ? "" : " ",
         info.argStr.c_str());
 
+    printf("%s\n", info.fullHelp.c_str());
+
     std::cout << globalOptions_;
 
     if (!info.options.options().empty()) {
       printf("\n");
       std::cout << info.options;
     }
-
-    printf("\n%s\n", info.fullHelp.c_str());
   }
 }