MCPcopy Create free account
hub / github.com/audacity/audacity / applyCommandLineOptions

Method applyCommandLineOptions

au4/src/app/app.cpp:399–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void App::applyCommandLineOptions(const CommandLineParser::Options& options)
400{
401 if (options.app.revertToFactorySettings) {
402 appshellConfiguration()->revertToFactorySettings(options.app.revertToFactorySettings.value());
403 }
404
405 startupScenario()->setStartupType(options.startup.type);
406
407 if (options.startup.scoreUrl.has_value()) {
408 project::ProjectFile file { options.startup.scoreUrl.value() };
409
410 if (options.startup.scoreDisplayNameOverride.has_value()) {
411 file.displayNameOverride = options.startup.scoreDisplayNameOverride.value();
412 }
413
414 startupScenario()->setStartupScoreFile(file);
415 }
416
417 if (options.app.loggerLevel) {
418 globalModule.setLoggerLevel(options.app.loggerLevel.value());
419 }
420}
421
422int App::processAudioPluginRegistration(const CommandLineParser::AudioPluginRegistration& task)
423{

Callers

nothing calls this directly

Calls 5

setStartupTypeMethod · 0.80
has_valueMethod · 0.80
setStartupScoreFileMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected