diff --git a/app/cli/commandlineparser.cpp b/app/cli/commandlineparser.cpp index eca103ba..ab5ecbdb 100644 --- a/app/cli/commandlineparser.cpp +++ b/app/cli/commandlineparser.cpp @@ -372,6 +372,7 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference parser.addToggleOption("swap-gamepad-buttons", "swap A/B and X/Y gamepad buttons (Nintendo-style)"); parser.addToggleOption("keep-awake", "prevent display sleep while streaming"); parser.addToggleOption("performance-overlay", "show performance overlay"); + parser.addToggleOption("hdr", "HDR streaming"); parser.addChoiceOption("capture-system-keys", "capture system key combos", m_CaptureSysKeysModeMap.keys()); parser.addChoiceOption("video-codec", "video codec", m_VideoCodecMap.keys()); parser.addChoiceOption("video-decoder", "video decoder", m_VideoDecoderMap.keys()); @@ -486,8 +487,11 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference // Resolve --keep-awake and --no-keep-awake options preferences->keepAwake = parser.getToggleOptionValue("keep-awake", preferences->keepAwake); - // Resolve --performance-overlay option + // Resolve --performance-overlay and --no-performance-overlay options preferences->showPerformanceOverlay = parser.getToggleOptionValue("performance-overlay", preferences->showPerformanceOverlay); + + // Resolve --hdr and --no-hdr options + preferences->enableHdr = parser.getToggleOptionValue("hdr", preferences->enableHdr); // Resolve --capture-system-keys option if (parser.isSet("capture-system-keys")) {