Skip to content

Commit 09a13b0

Browse files
committed
Clarify double -- for dotnet vs app args
1 parent 0090045 commit 09a13b0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ It shines for:
2525
dnx go app.cs
2626

2727
# Pass arguments to your app
28+
dnx go app.cs arg1 arg2
29+
30+
# Also works
2831
dnx go app.cs -- arg1 arg2
2932

3033
# Pass arguments to the underlying `dotnet publish`
31-
dnx go app.cs /p:MyProp=true -- arg1 arg2
34+
# First -- is for dotnet publish, second -- is for your app
35+
dnx go app.cs -- /p:MyProp=true -- arg1 arg2
3236
```
3337

3438
The default mode publishes the app with native AOT and then runs the resulting executable,
@@ -42,6 +46,9 @@ that native AOT does not support, while still keeping most publish optimizations
4246
dnx go app.cs --r2r
4347

4448
# Pass arguments to your app
49+
dnx go app.cs --r2r arg1 arg2
50+
51+
# Also works
4552
dnx go app.cs --r2r -- arg1 arg2
4653
```
4754

0 commit comments

Comments
 (0)