Skip to content

Commit bf45b9b

Browse files
authored
Update README.md
1 parent b8d87e5 commit bf45b9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ CommandLine.Console ()
3434
Description = "parameter description",
3535
Required = true, // parameter is required
3636
},
37+
FlowCommandParameter.CreateRequired("p3", "param3", "parameter description"), // use factory method for required parameter
3738
new FlowCommandParameter {
3839
FullName = "param2", // full name is required property, other properties ShortName or PropertyName can be inferred from FullName
3940
Description = "parameter2 description",
4041
Required = false,
41-
}
42+
},
43+
FlowCommandParameter.Create("p4", "param4", "parameter description"), // use factory method for non required parameter
4244
}
4345
)
4446
.RunCommand ();

0 commit comments

Comments
 (0)