use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class MyCommand extends Command { protected function execute(InputInterface $input, OutputInterface $output) { $argument = $input->getArgument('argument_name'); // get the value of an argument by its name // ... } protected function configure() { $this->addArgument('argument_name', null, 'Description of the argument'); // ... } }In this example, we define a command that has one argument called "argument_name". In the execute() method, we retrieve the value of this argument using the getArgument() method of the InputInterface class. We pass the name of the argument as a parameter to this method. The package library for the Symfony\Component\Console\Input\InputInterface class is "symfony/console". It is a part of the Symfony framework and provides a set of components for building command-line applications in PHP.