Skip to content

DragonFruit Arrays Bug 0.4+ #1652

@o4f6bgpac3

Description

@o4f6bgpac3

When using System.CommandLine.DragonFruit version 0.4+, arrays do not read more than 1 parameter.
This is not the case in version 0.3.0-alpha.21216.1 and the bug occurs in at least string[] and int[], possibly other types of array.

Code:

class Program
{
    static async Task Main(int[] test)
    {
        Console.WriteLine(String.Join(", ", test));
    }
}

Args:
--test 1 2

Error:

Unrecognized command or argument '2'.

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