Skip to content

Is it possible to have a property as part of multiple sets? #274

Open
@ravensorb

Description

@ravensorb

Consider the following idea below.

It is setup to have 2 properties that can always be supplied (Start/End Date), one property that can be supplied with the "file" and the "filter1" set, and then 1 property for the "filter1", 1 property for the "filter2" and 1 property for the "file" set. Is this possible?

public class Opts1
{
    [Option('s')]
    public DateTime StartDate {get; set;}
    [Option('e')]
    public DateTime EndDate {get; set; }

    [Option('n', SetName = "file;filter1")]
    public string Name { get; set;}

    [Option('a', SetName = "filter1")]
    public int Age { get; set; }

    [Option('i', SetName = "filter2")]
    public string ID { get; set;}

    [Option('f', SetName = "file")]
    public string InputFile {get; set;}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions