Skip to content

displayName arg doesn't work #59

@mbuck

Description

@mbuck

Display name is never set when passed in via the command line. For example:
myservice.exe action:install displayName:DoStuff

I believe the issue has to do with the following line:
https://github.com/PeterKottas/DotNetCore.CmdArgParser/blob/f5d012866e08bd7cf4e677bc55c5cf030d95665f/Source/PeterKottas.DotNetCore.CmdArgParser/Parser.cs#L39
This results in "displayname".StartsWith("displayName") which evaluates to false.

I noticed this is the only camel cased argument, while others are kebab cased. Perhaps this is the reason for this issue? Would it be possible to use "display-name" or "displayname" instead? I'm happy to throw together a pr, but I wanted to make sure that the change was in the desired direction first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions