Skip to content

Spark missing arguments #1718

Description

@nowackipawel

I've got command with beginning as below:


class ReportUserImage extends BaseCommand
{
	protected $group       = 'report';
	protected $name        = 'report:simple_file';
	protected $description = '';

	public function run(array $params)
	{

		print_r($params);
}
}

and after call i get:

pc@pc:~/Development/PhpstormProjects/LOCAL-$ php spark report:simple_file DrivingSchoolModel "d-lg" "1-2" "png" "4-5" "0"

CodeIgniter CLI Tool - Version 4.0.0-alpha.5 - Server-Time: 2019-02-11 14:42:55pm
Array
(
    [0] => DrivingSchoolModel
    [1] => png
)
pc@pc:~/Development/PhpstormProjects/LOCAL-$ 

what is missing? every parametr with "-" in it. There is no change with or without escaping it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions