Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/19 13:28:34 (5 years ago)
Author:
dpiringe
Message:

#2924:

  • added base attribute CLIBaseAttribute for CLI attributes, which contains the property Description
  • changed inheritance from Attribute to CLIBaseAttribute for types: CommandAttribute, OptionAttribute and ValueAttribute
  • added comment in RunnerHost
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2924_DotNetCoreMigration/HeuristicLab.CommandLineInterface/Attributes/ValueAttribute.cs

    r16985 r17025  
    11using System;
     2using HeuristicLab.CommandLineInterface.Core;
    23
    34namespace HeuristicLab.CommandLineInterface {
     
    67  /// </summary>
    78  [AttributeUsage(AttributeTargets.Property)]
    8   public class ValueAttribute : Attribute {
     9  public class ValueAttribute : CLIBaseAttribute {
    910    /// <summary>
    10     /// Description of the value.
     11    /// The index of the value order. For example: a value with index=1 has to be
     12    /// specified before a value with index=2, else an exception will be thrown.
    1113    /// </summary>
    12     public string Description { get; set; }
    13 
    1414    public int Index { get; set; }
    1515
Note: See TracChangeset for help on using the changeset viewer.