• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/cli/indexcommand.php
  • Класс: BitrixTranslateCliIndexCommand
  • Вызов: IndexCommand::configure
protected function configure()
{
	//$inBitrixDir = realpath(Application::getDocumentRoot().Application::getPersonalRoot()) === realpath(getcwd());

	$this
		// the name of the command (the part after "bin/console")
		->setName('translate:index')

		// the short description shown while running "php bin/console list"
		->setDescription('Indexes project for localization language files.')

		// the full command description shown when running the command with
		// the "--help" option
		->setHelp('This system command builds search index of localization language files.')

		->setDefinition(
			new ConsoleInputInputDefinition(array(
				new ConsoleInputInputOption(
					'path',
					'p',
					ConsoleInputInputArgument::OPTIONAL,
					'Path to look through.',
					'/bitrix/modules'
				)
			))
		)
	;
}