JasperFx/oakton

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

mysticmind opened this issue · 1 comments

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.

You can disambiguate with an explicit attribute for [CommandAlias] to override the convention.