php-cli icon indicating copy to clipboard operation
php-cli copied to clipboard

Support multi args commands (as object/verb)

Open camlafit opened this issue 3 months ago • 2 comments

Hello

Actually only first argument is used to find related command. : is used to group and split command. Is not possible to provide multi arguments and found related command.

Could be nice to support it

Example : app.php object:list [args...] [options...] or app.php object:add [args...] [options...] to app.php object [args...] [options...] app.php object list [args...] [options...] or app.php object add [args...] [options...]

camlafit avatar Sep 29 '25 13:09 camlafit

hello, sorry i almost didn't check github lately. now that i noticed it, i will have a close look soon. thanks for contrib

adhocore avatar Oct 10 '25 09:10 adhocore

Hello

Don't worry :) In my part it's a work in progress. A POC is provided in this project https://github.com/alternc/alternc-cli Purpose is to be more "logical" (at least in my mind) as some project as https://github.com/scaleway/scaleway-cli or https://wp-cli.org/fr/

As side effect a method subcommands() is provided to allow auto inclusion from "main" command.

Thanks a lot

camlafit avatar Oct 13 '25 08:10 camlafit