Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing documentation for InputArgument::IS_ARRAY #2686

Closed
Labels
ConsoleactionableClear and specific issues ready for anyone to take them.
@fabpot

Description

@fabpot

InputArgument::IS_ARRAY is not documented. It can only be used at the end of the argument list and allows to take an indefinite number of arguments:

$console    ->register('foo')    ->setDefinition(array(newInputArgument('values', InputArgument::IS_ARRAY,'An array of arguments'),    ))    ->setDescription('Foo')    ->setCode(function (InputInterface$input,OutputInterface$output) {print_r($input->getArgument('values'));    });

if run withconsole foo a b c d e, the argument value will be:['a', 'b', 'c', 'd', 'e']

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsoleactionableClear and specific issues ready for anyone to take them.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp