[Help("Mandatory Subject to provide")]
public string Subject { get; set; }
- // An importance level for the message.
+ // An enum importance level for the message.
// If not provided this is defaulted to `Normal`
// User can provide the value as a number or string (ie. '2' or 'high')
[OptionParameter(LongName = "importance",
@@ -230,6 +230,13 @@
Example Application
[Help("Sets the importance level of a sent message")]
public MessageImportanceEnum Importance { get; set; } = MessageImportanceEnum.Normal;
+ // A list of strings
+ // Lists support all the same types as any other option parameter
+ // The Cli expects list values in the form `item1,item2,item3` etc
+ [OptionParameter(LongName = "recipients")]
+ [Help("A list of email addresses to send to")]
+ public List<string> Recipients { get; set; }
+
// A message *must* be provided as the first operand
[Required]
[Operand(1)]
@@ -437,7 +444,7 @@
Tips & Behaviour
EntryPoint is released under the MIT license
- Updated on Jan 1, 2017
+ Updated on Jan 5, 2017
diff --git a/src/EntryPoint/project.json b/src/EntryPoint/project.json
index cc3e8d3..99c615a 100644
--- a/src/EntryPoint/project.json
+++ b/src/EntryPoint/project.json
@@ -1,5 +1,5 @@
{
- "version": "0.9.6-*",
+ "version": "0.9.7-*",
"title": "EntryPoint",
"description": "Lightweight and Composable CLI Argument Parser for all modern .Net platforms",
"authors": [ "Nick Lucas" ],