Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
🐛 Fix inaccessible set accessor on FlagOptions for flag attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
louistakepillz committed Apr 28, 2015
1 parent eac7f08 commit e5dabef
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ArgumentParser/Arguments/Argument`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected Argument(Key key, String description = null, ValueOptions valueOptions
/// <summary>
/// Gets the <see cref="T:System.ComponentModel.TypeConverter"/> to use for conversion.
/// </summary>
protected TypeConverter TypeConverter { get; private set; }
public virtual TypeConverter TypeConverter { get; protected set; }

/// <summary>
/// Gets the default value of the argument.
Expand Down
2 changes: 1 addition & 1 deletion ArgumentParser/Arguments/FlagArgument`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected FlagArgument(Key key, String description = null, ValueOptions valueOpt
/// <summary>
/// Gets the <see cref="T:ArgumentParser.Arguments.FlagOptions"/> value(s) that define the behavior of the flag.
/// </summary>
public FlagOptions FlagOptions { get; private set; }
public FlagOptions FlagOptions { get; set; }

/// <summary>
/// Converts a sequence of values to the type of the argument using the specified <see cref="T:System.Globalization.CultureInfo"/>.
Expand Down
2 changes: 1 addition & 1 deletion ArgumentParser/Reflection/ICoupleableOptionAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace ArgumentParser.Reflection
{
/// <summary>
/// Represents a coupleable argument definition (or option) attribute.
/// Represents a coupleable argument definition attribute.
/// </summary>
public interface ICoupleableOptionAttribute : IOptionAttribute
{
Expand Down
2 changes: 1 addition & 1 deletion ArgumentParser/Reflection/POSIX/POSIXOptionAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public POSIXOptionAttribute(Char tag)
/// <summary>
/// Gets the type converter used for value conversion.
/// </summary>
public virtual TypeConverter TypeConverter { get; private set; }
public virtual TypeConverter TypeConverter { get; protected set; }

/// <summary>
/// Gets an argument definition using the supplied specifications.
Expand Down
2 changes: 1 addition & 1 deletion ArgumentParser/Reflection/PowerShell/PSFlagAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class PSFlagAttribute : PSOptionAttribute, IFlagOptionAttribute
/// <summary>
/// Gets the <see cref="T:ArgumentParser.Arguments.FlagOptions"/> value(s) that define the behavior of the flag.
/// </summary>
public FlagOptions FlagOptions { get; private set; }
public FlagOptions FlagOptions { get; set; }

/// <summary>
/// Gets an argument definition using the supplied specifications.
Expand Down
2 changes: 1 addition & 1 deletion ArgumentParser/Reflection/PowerShell/PSOptionAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public PSOptionAttribute(String tag)
/// <summary>
/// Gets the type converter used for value conversion.
/// </summary>
public virtual TypeConverter TypeConverter { get; private set; }
public virtual TypeConverter TypeConverter { get; protected set; }

/// <summary>
/// Gets an argument definition using the supplied specifications.
Expand Down
2 changes: 1 addition & 1 deletion ArgumentParser/Reflection/Windows/WindowsFlagAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class WindowsFlagAttribute : WindowsOptionAttribute, IFlagOptionAttribute
/// <summary>
/// Gets the <see cref="T:ArgumentParser.Arguments.FlagOptions"/> value(s) that define the behavior of the flag.
/// </summary>
public FlagOptions FlagOptions { get; private set; }
public FlagOptions FlagOptions { get; set; }

/// <summary>
/// Gets an argument definition using the supplied specifications.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public WindowsOptionAttribute(String tag)
/// <summary>
/// Gets the type converter used for value conversion.
/// </summary>
public virtual TypeConverter TypeConverter { get; private set; }
public virtual TypeConverter TypeConverter { get; protected set; }

/// <summary>
/// Gets an argument definition using the supplied specifications.
Expand Down

0 comments on commit e5dabef

Please sign in to comment.