Skip to content

Command line args parser missing separator attribute #73

@cumiller

Description

@cumiller

When parsing command line arguments, the parser fails to separate the multiple externLinks separated by "|".

Observed result:
The entire -e argument value is stored in the first element of "externlinksFilePaths". No split is performed.

Expected result:
The multiple extern links would be split based on the "|" and externLinksFilePaths would have separate elements for each path in the argument string. "A|B|C" would produce separate items in externLinksFilePaths.

Fix:
SettingArgs.cs

[Option('e', nameof(ExternLinksFilePaths), Separator = '|', Required = false, HelpText = "Links files to use for external documentation")]
public IEnumerable<string> ExternLinksFilePaths { get; set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions