Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #27 from brutaldev/master

Allow for localization of description text
  • Loading branch information...
commit 225b7be1cc707c07230cecf33b78601333eb4a28 2 parents 71583e5 + 8b29322
@adrianaisemberg authored
View
4 CLAP/GlobalAttribute.cs
@@ -9,7 +9,7 @@ namespace CLAP
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
- public sealed class GlobalAttribute : Attribute
+ public class GlobalAttribute : Attribute
{
/// <summary>
/// The additional aliases (as CSV) of the parameter
@@ -19,7 +19,7 @@ public sealed class GlobalAttribute : Attribute
/// <summary>
/// The description of this parameter
/// </summary>
- public string Description { get; set; }
+ public virtual string Description { get; set; }
/// <summary>
/// The name of this parameter
View
4 CLAP/ParameterAttribute.cs
@@ -105,9 +105,9 @@ public AliasesAttribute(string aliases)
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.Parameter)]
- public sealed class DescriptionAttribute : Attribute
+ public class DescriptionAttribute : Attribute
{
- public string Description { get; private set; }
+ public virtual string Description { get; private set; }
public DescriptionAttribute(string description)
{
View
4 CLAP/VerbAttribute.cs
@@ -7,7 +7,7 @@ namespace CLAP
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
- public sealed class VerbAttribute : Attribute
+ public class VerbAttribute : Attribute
{
/// <summary>
/// Additional names for the verb
@@ -17,7 +17,7 @@ public sealed class VerbAttribute : Attribute
/// <summary>
/// The description of the verb. Used to generate the help string
/// </summary>
- public string Description { get; set; }
+ public virtual string Description { get; set; }
/// <summary>
/// Whether this verb is the default verb of the class
Please sign in to comment.
Something went wrong with that request. Please try again.