Skip to content

Commit e8f272b

Browse files
committed
2 parents 17be617 + bf45b9b commit e8f272b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)