Last change
on this file since 17877 was
17025,
checked in by dpiringe, 6 years ago
|
#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 size:
668 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.CommandLineInterface.Core;
|
---|
3 |
|
---|
4 | namespace HeuristicLab.CommandLineInterface {
|
---|
5 | /// <summary>
|
---|
6 | /// The option attribute identifies properties as option.
|
---|
7 | /// </summary>
|
---|
8 | [AttributeUsage(AttributeTargets.Property)]
|
---|
9 | public class OptionAttribute : CLIBaseAttribute {
|
---|
10 | /// <summary>
|
---|
11 | /// An optional shortcut of the option. Takes the '-' prefix. For example: '-o'.
|
---|
12 | /// </summary>
|
---|
13 | public string Shortcut { get; set; }
|
---|
14 | /// <summary>
|
---|
15 | /// Set this to true to get a required option, which has always to be set from the user.
|
---|
16 | /// </summary>
|
---|
17 | public bool Required { get; set; } = false;
|
---|
18 | }
|
---|
19 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.