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 { echo $am->moveArchive($args[1]); } } else { if ($args[0] == "--subscribe-collection") { if (count($args) > 3) { echo $am->subscribeCollection($args[1], $args[2], $args[3]); } else { echo $am->subscribeCollection($args[1], $args[2]); } } else {