if ($args[0] == "--info") { if (count($args) == 1) { echo $am->getAccountInfo(); } else { echo $am->getRoomInfo($args[1]); } } else { if ($args[0] == "--get-node-configuration") { echo $am->getNodeConfiguration($args[1], $args[2], $args[3]); } else { if ($args[0] == "--fetch-items") { echo $am->fetchItems($args[1], $args[2], $args[3]); } else { if ($args[0] == "--register-hook") { if (count($args) > 2) { echo $am->registerHook($args[1], $args[2]); } else { echo $am->registerHook($args[1]); } } else { if ($args[0] == "--unregister-hook") { echo $am->unregisterHook(); } else { if ($args[0] == "--hook-info") { echo $am->getHookInfo(); } else { if ($args[0] == "--register-repository") { if (count($args) > 2) { echo $am->registerRepository($args[1], $args[2]); } else { echo $am->registerRepository($args[1]);