Skip to content

Console: Infinity and NaN not shown as default value #23267

@jkufner

Description

@jkufner
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version v3.1.5

Code in SomeCommand::configure():

$this->addOption('limit', null, InputOption::VALUE_REQUIRED, 'Max number of items', INF)

Then --help shows following line:

      --limit=LIMIT              Max number of items [default: ]

Notice the missing default value. I would expect [default: INF] or [default: ∞].

The same situation is with NAN.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions