"configurer le fichier en entrée au format YAML", "action" => [self::class, "create_command"], "cmd_args" => [ "usage" => self::NAME." [file]", ["-o", "--param", "args" => "value", "action" => [self::class, "add_params"], "help" => "spécifier une option générique", ], ["args" => [["file"]], "action" => [self::class, "set_file"], ], ], ]; const F_OPTION = ["-f", "--input", "args" => "file", "action" => [self::class, "set_file"], ]; /** @var YamlReader */ private static $command; static function create_command() { self::$command = new YamlReader(); } static function set_file($file) { $file = A::last(A::with($file)); self::get()->setInput($file); } }