Skip to content
Browse files

Merge pull request #27 from brutaldev/master

Allow for localization of description text
  • Loading branch information...
2 parents 71583e5 + 8b29322 commit 225b7be1cc707c07230cecf33b78601333eb4a28 @adrianaisemberg committed
Showing with 6 additions and 6 deletions.
  1. +2 −2 CLAP/GlobalAttribute.cs
  2. +2 −2 CLAP/ParameterAttribute.cs
  3. +2 −2 CLAP/VerbAttribute.cs
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

0 comments on commit 225b7be

Please sign in to comment.
Something went wrong with that request. Please try again.