diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index c417f5afb14bab22314353f49f3b4db14b9a8999..6ccf2a46c043ede176af60243211c481406631cb 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -2451,26 +2451,31 @@ int main(int argc, char *argv[]) opt_allow_opengl = true; } else if (arg_is(argv[i], "--help", "-h")) { - std::cout - << "--help, -h: Get list of available commands.\n\n" - << "--startstreaming: Automatically start streaming.\n" - << "--startrecording: Automatically start recording.\n" - << "--startreplaybuffer: Start replay buffer.\n" - << "--startvirtualcam: Start virtual camera (if available).\n\n" - << "--collection : Use specific scene collection." - << "\n" - << "--profile : Use specific profile.\n" - << "--scene : Start with specific scene.\n\n" - << "--studio-mode: Enable studio mode.\n" - << "--minimize-to-tray: Minimize to system tray.\n" - << "--portable, -p: Use portable mode.\n" - << "--multi, -m: Don't warn when launching multiple instances.\n\n" - << "--verbose: Make log more verbose.\n" - << "--always-on-top: Start in 'always on top' mode.\n\n" - << "--unfiltered_log: Make log unfiltered.\n\n" - << "--allow-opengl: Allow OpenGL on Windows.\n\n" - << "--version, -V: Get current version.\n"; + std::string help = + "--help, -h: Get list of available commands.\n\n" + "--startstreaming: Automatically start streaming.\n" + "--startrecording: Automatically start recording.\n" + "--startreplaybuffer: Start replay buffer.\n" + "--startvirtualcam: Start virtual camera (if available).\n\n" + "--collection : Use specific scene collection." + "\n" + "--profile : Use specific profile.\n" + "--scene : Start with specific scene.\n\n" + "--studio-mode: Enable studio mode.\n" + "--minimize-to-tray: Minimize to system tray.\n" + "--portable, -p: Use portable mode.\n" + "--multi, -m: Don't warn when launching multiple instances.\n\n" + "--verbose: Make log more verbose.\n" + "--always-on-top: Start in 'always on top' mode.\n\n" + "--unfiltered_log: Make log unfiltered.\n\n"; +#ifdef _WIN32 + MessageBoxA(NULL, help.c_str(), "Help", + MB_OK | MB_ICONASTERISK); +#else + std::cout << help + << "--version, -V: Get current version.\n"; +#endif exit(0); } else if (arg_is(argv[i], "--version", "-V")) {