Skip to content

add Uri to ArgumentConverter.StringConverters #2574

@andrewschmidgit

Description

@andrewschmidgit

Right now, if you have:

public class UrlOption : Option<Uri>
{
  public UrlOption() : base("--url")
  {
    Required = true;
  }
}

an InvalidOperationException is thrown, with the message:

Cannot parse argument 'http://example.com' for option '--url' as expected type 'System.Uri'.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions