public function copyAssets(array $options)
    {

        $appname = '#none';
        $symlink = false;

        if (in_array("--symlink", $options["options"])) {
            $symlink = true;
        }
        if ($this->strlikeInArray("--appname", $options["options"]) != null) {
            $ch = $this->strlikeInArray("--appname", $options["options"]);
            $e = explode("=", $ch);
            $appname = $e[1];
            if (strpos($appname, "App") == false) {
                Output::displayAsRed("The app name is invalid");
            }

            if (!is_dir(FEnvFcm::get("framework.root")."/apps/".$appname)) {
                Output::displayAsRed("Assets Manager Error: App $appname doesn't exist.", "yes", false);
            }
        }

        $env = ($this->strlikeInArray("--env=", $options["options"]));
        if ($env != null) {
            $nenv = explode("=", $env);
            $env = strtolower($nenv[1]);
            if (!in_array($env, array("dev", "prod", "all"))) {
                if (!in_array("--quiet", $options["options"])) {
                    Output::displayAsRed(" The environment ".
                        strtoupper($env)." does not exist.\n", "yes");
                } else {
                    return (null);
                }
            }
        }
        Output::displayAsGreen("Hey, I'll copy ".(($appname != '#none')? $appname." assets (" :
                'all assets (').(($env != null && $env !== "all")? strtoupper($env)." environment)" :
                "all environments)")." in web folder".(($symlink == true)? ' with symlink option' : ''), "none");
        $this->callDelCreaServer($appname, $env);
        $this->copy($symlink, $appname, $env);
        if ($this-> strlikeInArray("--noexit", $options["options"]) != null) {
            Output::displayAsGreen("The copy of the assets".(($appname == '#none')? '' :
                    ' for '.$appname)." has been done.", "none", false);
        } else {
            Output::displayAsGreen("The copy of the assets".(($appname == '#none')? '' :
                    ' for '.$appname)." has been done.", "yes", false);
        }
    }