return null;
}
+class NoUserArgumentException extends Exception
+{
+}
+
function getUser()
{
$user = null;
throw new Exception("Can't find user with nickname '$nickname'");
}
} else {
- show_help();
- exit(1);
+ throw new NoUserArgumentException("No user argument specified.");
}
return $user;