kenjis / codeigniter-cli

Cli for CodeIgniter 3.0
MIT License
94 stars 21 forks source link

How to push parameter to custom user command #9

Closed virutmath closed 8 years ago

virutmath commented 8 years ago

I want to create some custom command for auto procedure and I use custom user command like you demo. But I want to use some parameter in this. How can I do?

kenjis commented 8 years ago

See https://github.com/kenjis/codeigniter-cli/blob/master/src/Command/Run.php#L17 This is the source for run command:

USAGE
    run <controller>
    run <controller> <method>
    run <controller> <method> <arg1>
    run <controller> <method> <arg1> <arg2> [...]