zenstruck / console-extra

A modular set of features to reduce configuration boilerplate for your Symfony commands.
MIT License
78 stars 3 forks source link

Detect arguments/options from `__invoke()` method #26

Closed kbond closed 2 years ago

kbond commented 2 years ago
public function __invoke(
    #[Argument(...see InputArgument constructor...)]
    string $arg1,

    #[Option(...see InputOption constructor...)]
    string $opt1,
)