Skip to content

Commit 5e1901d

Browse files
committed
doc about array args handling
1 parent c8b76b4 commit 5e1901d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

ReadMe.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,29 @@ You can call like here.
216216
> SampleApp.exe -array [10,20,30] -person {"Age":10,"Name":"foo"}
217217
```
218218

219+
For the array handling, it can be a treat without correct JSON.
220+
e.g. one-length argument can handle without `[]`.
221+
222+
```csharp
223+
Foo(int[] array)
224+
> SampleApp.exe -array 9999
225+
```
226+
227+
multiple-argument can handle by split with ` `.
228+
229+
```csharp
230+
Foo(int[] array)
231+
> SampleApp.exe -array "11 22 33"
232+
```
233+
234+
string argument can handle without `"`.
235+
236+
```csharp
237+
Foo(string[] array)
238+
> SampleApp.exe -array "hello"
239+
> SampleApp.exe -array "foo bar baz"
240+
```
241+
219242
Exit Code
220243
---
221244
If the batch method returns `int` or `Task<int>` value, BatchEngine will set the return value to the exit code.

0 commit comments

Comments
 (0)