We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7693ee commit 2010294Copy full SHA for 2010294
1 file changed
CommandLineParser/Core/CommandLineOptionBase.cs
@@ -45,8 +45,8 @@ public object DefaultValue
45
public string Description { get; protected set; }
46
public bool IsRequired { get; protected set; }
47
public bool HasDefault { get; protected set; }
48
- public bool HasShortName => !string.IsNullOrWhiteSpace(ShortName);
49
- public bool HasLongName => !string.IsNullOrWhiteSpace(LongName);
+ public bool HasShortName => !string.IsNullOrWhiteSpace(ShortName) && !ShortName.Equals(m_parserOptions.PrefixShortOption);
+ public bool HasLongName => !string.IsNullOrWhiteSpace(LongName) && !LongName.Equals(m_parserOptions.PrefixLongOption);
50
51
public bool AutoExecute { get; protected set; }
52
0 commit comments