mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:17:02 +02:00
Made lines shorter.
This commit is contained in:
parent
b044e1b82f
commit
09b288d63c
1 changed files with 122 additions and 28 deletions
|
@ -76,36 +76,130 @@ int main(int argc, const char* argv[]) {
|
||||||
QCommandLineOption helpOption = parser.addHelpOption();
|
QCommandLineOption helpOption = parser.addHelpOption();
|
||||||
QCommandLineOption versionOption = parser.addVersionOption();
|
QCommandLineOption versionOption = parser.addVersionOption();
|
||||||
|
|
||||||
QCommandLineOption urlOption("url", "Start at specified URL location.", "value");
|
QCommandLineOption urlOption(
|
||||||
QCommandLineOption protocolVersionOption("protocolVersion", "Displays the protocol version.");
|
"url",
|
||||||
QCommandLineOption noUpdaterOption("no-updater", "Do not show auto-updater.");
|
"Start at specified URL location.",
|
||||||
QCommandLineOption checkMinSpecOption("checkMinSpec", "Check if machine meets minimum specifications.");
|
"value"
|
||||||
QCommandLineOption runServerOption("runServer", "Whether to run the server.");
|
);
|
||||||
QCommandLineOption listenPortOption("listenPort", "Port to listen on.");
|
QCommandLineOption protocolVersionOption(
|
||||||
QCommandLineOption serverContentPathOption("serverContentPath", "Where to find server content <path>.", "serverContentPath"); // This data type will not be familiar to users.
|
"protocolVersion",
|
||||||
QCommandLineOption overrideAppLocalDataPathOption("cache", "set test cache <dir>.", "dir");
|
"Displays the protocol version."
|
||||||
//QCommandLineOption scriptsOption("scripts", "Set path for defaultScripts.", "dir"); // Use this once SCRIPTS_SWITCH is removed.
|
);
|
||||||
QCommandLineOption allowMultipleInstancesOption("allowMultipleInstances", "Allow multiple instances to run.");
|
QCommandLineOption noUpdaterOption(
|
||||||
QCommandLineOption displaysOption("display", "Preferred display.", "displays");
|
"no-updater",
|
||||||
QCommandLineOption disableDisplaysOption("disable-displays", "Displays to disable.");
|
"Do not show auto-updater."
|
||||||
QCommandLineOption disableInputsOption("disable-inputs", "Inputs to disable.");
|
);
|
||||||
QCommandLineOption suppressSettingsResetOption("suppress-settings-reset", "Suppress the prompt to reset interface settings.");
|
QCommandLineOption checkMinSpecOption(
|
||||||
QCommandLineOption oculusStoreOption("oculus-store", "Let the Oculus plugin know if interface was run from the Oculus Store.");
|
"checkMinSpec",
|
||||||
QCommandLineOption standaloneOption("standalone", "Emulate a standalone device.");
|
"Check if machine meets minimum specifications."
|
||||||
QCommandLineOption disableWatchdogOption("disableWatchdog", "Disable the watchdog thread. The interface will crash on deadlocks.");
|
);
|
||||||
QCommandLineOption systemCursorOption("system-cursor", "Needs clarification!");
|
QCommandLineOption runServerOption(
|
||||||
QCommandLineOption concurrentDownloadsOption("concurrent-downloads", "Maximum concurrent resource downloads. Default is 16, except for Android where it is 4.");
|
"runServer",
|
||||||
QCommandLineOption avatarURLOption("avatarURL", "Override the avatar U.R.L.");
|
"Whether to run the server."
|
||||||
QCommandLineOption replaceAvatarURLOption("replace-avatar-url", "Replaces the avatar U.R.L. When used with --avatarURL, this takes precedence.");
|
);
|
||||||
QCommandLineOption setBookmarkOption("setBookmark", "Set bookmark as key=value pair. Including the '=' symbol in either string is unsupported.", "string");
|
QCommandLineOption listenPortOption(
|
||||||
QCommandLineOption forceCrashReportingOption("forceCrashReporting", "Force crash reporting to initialize.");
|
"listenPort",
|
||||||
|
"Port to listen on."
|
||||||
|
);
|
||||||
|
QCommandLineOption serverContentPathOption(
|
||||||
|
"serverContentPath",
|
||||||
|
"Where to find server content <path>.",
|
||||||
|
"serverContentPath"
|
||||||
|
); // This data type will not be familiar to users.
|
||||||
|
QCommandLineOption overrideAppLocalDataPathOption(
|
||||||
|
"cache",
|
||||||
|
"set test cache <dir>.",
|
||||||
|
"dir"
|
||||||
|
);
|
||||||
|
//QCommandLineOption scriptsOption(
|
||||||
|
// "scripts",
|
||||||
|
// "Set path for defaultScripts.",
|
||||||
|
// "dir"
|
||||||
|
//); // Use this once SCRIPTS_SWITCH is removed.
|
||||||
|
QCommandLineOption allowMultipleInstancesOption(
|
||||||
|
"allowMultipleInstances",
|
||||||
|
"Allow multiple instances to run."
|
||||||
|
);
|
||||||
|
QCommandLineOption displaysOption(
|
||||||
|
"display",
|
||||||
|
"Preferred display.",
|
||||||
|
"displays"
|
||||||
|
);
|
||||||
|
QCommandLineOption disableDisplaysOption(
|
||||||
|
"disable-displays",
|
||||||
|
"Displays to disable."
|
||||||
|
);
|
||||||
|
QCommandLineOption disableInputsOption(
|
||||||
|
"disable-inputs",
|
||||||
|
"Inputs to disable."
|
||||||
|
);
|
||||||
|
QCommandLineOption suppressSettingsResetOption(
|
||||||
|
"suppress-settings-reset",
|
||||||
|
"Suppress the prompt to reset interface settings."
|
||||||
|
);
|
||||||
|
QCommandLineOption oculusStoreOption(
|
||||||
|
"oculus-store",
|
||||||
|
"Let the Oculus plugin know if interface was run from the Oculus Store."
|
||||||
|
);
|
||||||
|
QCommandLineOption standaloneOption(
|
||||||
|
"standalone",
|
||||||
|
"Emulate a standalone device."
|
||||||
|
);
|
||||||
|
QCommandLineOption disableWatchdogOption(
|
||||||
|
"disableWatchdog",
|
||||||
|
"Disable the watchdog thread. The interface will crash on deadlocks."
|
||||||
|
);
|
||||||
|
QCommandLineOption systemCursorOption(
|
||||||
|
"system-cursor",
|
||||||
|
"Needs clarification!"
|
||||||
|
);
|
||||||
|
QCommandLineOption concurrentDownloadsOption(
|
||||||
|
"concurrent-downloads",
|
||||||
|
"Maximum concurrent resource downloads. Default is 16, except for Android where it is 4."
|
||||||
|
);
|
||||||
|
QCommandLineOption avatarURLOption(
|
||||||
|
"avatarURL",
|
||||||
|
"Override the avatar U.R.L."
|
||||||
|
);
|
||||||
|
QCommandLineOption replaceAvatarURLOption(
|
||||||
|
"replace-avatar-url",
|
||||||
|
"Replaces the avatar U.R.L. When used with --avatarURL, this takes precedence."
|
||||||
|
);
|
||||||
|
QCommandLineOption setBookmarkOption(
|
||||||
|
"setBookmark",
|
||||||
|
"Set bookmark as key=value pair. Including the '=' symbol in either string is unsupported.",
|
||||||
|
"string"
|
||||||
|
);
|
||||||
|
QCommandLineOption forceCrashReportingOption(
|
||||||
|
"forceCrashReporting",
|
||||||
|
"Force crash reporting to initialize."
|
||||||
|
);
|
||||||
// The documented "--disable-lod" does not seem to exist.
|
// The documented "--disable-lod" does not seem to exist.
|
||||||
// Below are undocumented.
|
// Below are undocumented.
|
||||||
QCommandLineOption noLauncherOption("no-launcher", "Do not execute the launcher.");
|
QCommandLineOption noLauncherOption(
|
||||||
QCommandLineOption overrideScriptsPathOption(SCRIPTS_SWITCH, "set scripts <path>", "path");
|
"no-launcher",
|
||||||
QCommandLineOption responseTokensOption("tokens", "set response tokens <json>.", "json");
|
"Do not execute the launcher."
|
||||||
QCommandLineOption displayNameOption("displayName", "set user display name <string>.", "string");
|
);
|
||||||
QCommandLineOption defaultScriptOverrideOption("defaultScriptsOverride", "override defaultsScripts.js.", "string");
|
QCommandLineOption overrideScriptsPathOption(
|
||||||
|
SCRIPTS_SWITCH,
|
||||||
|
"set scripts <path>",
|
||||||
|
"path"
|
||||||
|
);
|
||||||
|
QCommandLineOption responseTokensOption(
|
||||||
|
"tokens",
|
||||||
|
"set response tokens <json>.",
|
||||||
|
"json"
|
||||||
|
);
|
||||||
|
QCommandLineOption displayNameOption(
|
||||||
|
"displayName",
|
||||||
|
"set user display name <string>.",
|
||||||
|
"string"
|
||||||
|
);
|
||||||
|
QCommandLineOption defaultScriptOverrideOption(
|
||||||
|
"defaultScriptsOverride",
|
||||||
|
"override defaultsScripts.js.",
|
||||||
|
"string"
|
||||||
|
);
|
||||||
// "--qmljsdebugger", which appears in output from "--help-all".
|
// "--qmljsdebugger", which appears in output from "--help-all".
|
||||||
|
|
||||||
parser.addOption(urlOption);
|
parser.addOption(urlOption);
|
||||||
|
|
Loading…
Reference in a new issue