mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
UI: Show help text for launch parameters on Windows
This commit is contained in:
parent
d027c41165
commit
bc472eab95
|
@ -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 <string>: Use specific scene collection."
|
||||
<< "\n"
|
||||
<< "--profile <string>: Use specific profile.\n"
|
||||
<< "--scene <string>: 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 <string>: Use specific scene collection."
|
||||
"\n"
|
||||
"--profile <string>: Use specific profile.\n"
|
||||
"--scene <string>: 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")) {
|
||||
|
|
Loading…
Reference in a new issue