Skip to content

Commit

Permalink
Merge pull request #27 from brutaldev/master
Browse files Browse the repository at this point in the history
Allow for localization of description text
  • Loading branch information
adrianaisemberg committed Apr 10, 2014
2 parents 71583e5 + 8b29322 commit 225b7be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CLAP/GlobalAttribute.cs
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions CLAP/ParameterAttribute.cs
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions CLAP/VerbAttribute.cs
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 225b7be

Please sign in to comment.