if ($args[0] == "--register-repository") { if (count($args) > 2) { echo $am->registerRepository($args[1], $args[2]); } else { echo $am->registerRepository($args[1]); } } else { if ($args[0] == "--unregister-repository") { echo $am->unregisterRepository(); } else { if ($args[0] == "--repository-info") { echo $am->getRepositoryInfo(); } else { if ($args[0] == "--start-recording") { if (count($args) > 3) { echo $am->startRecording($args[1], $args[2], $args[3]); } else { if (count($args) > 2) { echo $am->startRecording($args[1], $args[2]); } else { echo $am->startRecording($args[1]); } } } else { if ($args[0] == "--stop-recording") { echo $am->stopRecording($args[1]); } else { if ($args[0] == "--move-archive") { if (count($args) > 2) { echo $am->moveArchive($args[1], $args[2]); } else {