Skip to content

Duplicate short flag alias when 2 argument properties start with the same alphabet #74

@mysticmind

Description

@mysticmind

If we take the example as below, both properties start with S and no custom flag alias are defined. For this case, s is being generated as the short flag alias for both the properties.

public class ProjectionInput
{
    [Description("If specified, only execute against the named Marten store. Does not apply with only one store")]
    public string StoreFlag { get; set; }
 
    [Description("If specified, use this shard timeout value for daemon")]
    public string ShardTimeoutFlag { get; set; }
}

I think for these cases, we should only add a long flag and ignore short flags. The workaround is to explicitly define the flag alias.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions