未验证 提交 d0d7c439 编写于 作者: J Jim 提交者: GitHub

Merge pull request #2965 from WizardCM/windows-help-flag

UI: Show help text for launch parameters on Windows
...@@ -2451,26 +2451,31 @@ int main(int argc, char *argv[]) ...@@ -2451,26 +2451,31 @@ int main(int argc, char *argv[])
opt_allow_opengl = true; opt_allow_opengl = true;
} else if (arg_is(argv[i], "--help", "-h")) { } else if (arg_is(argv[i], "--help", "-h")) {
std::cout std::string help =
<< "--help, -h: Get list of available commands.\n\n" "--help, -h: Get list of available commands.\n\n"
<< "--startstreaming: Automatically start streaming.\n" "--startstreaming: Automatically start streaming.\n"
<< "--startrecording: Automatically start recording.\n" "--startrecording: Automatically start recording.\n"
<< "--startreplaybuffer: Start replay buffer.\n" "--startreplaybuffer: Start replay buffer.\n"
<< "--startvirtualcam: Start virtual camera (if available).\n\n" "--startvirtualcam: Start virtual camera (if available).\n\n"
<< "--collection <string>: Use specific scene collection." "--collection <string>: Use specific scene collection."
<< "\n" "\n"
<< "--profile <string>: Use specific profile.\n" "--profile <string>: Use specific profile.\n"
<< "--scene <string>: Start with specific scene.\n\n" "--scene <string>: Start with specific scene.\n\n"
<< "--studio-mode: Enable studio mode.\n" "--studio-mode: Enable studio mode.\n"
<< "--minimize-to-tray: Minimize to system tray.\n" "--minimize-to-tray: Minimize to system tray.\n"
<< "--portable, -p: Use portable mode.\n" "--portable, -p: Use portable mode.\n"
<< "--multi, -m: Don't warn when launching multiple instances.\n\n" "--multi, -m: Don't warn when launching multiple instances.\n\n"
<< "--verbose: Make log more verbose.\n" "--verbose: Make log more verbose.\n"
<< "--always-on-top: Start in 'always on top' mode.\n\n" "--always-on-top: Start in 'always on top' mode.\n\n"
<< "--unfiltered_log: Make log unfiltered.\n\n" "--unfiltered_log: Make log unfiltered.\n\n";
<< "--allow-opengl: Allow OpenGL on Windows.\n\n"
<< "--version, -V: Get current version.\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); exit(0);
} else if (arg_is(argv[i], "--version", "-V")) { } else if (arg_is(argv[i], "--version", "-V")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册