summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index e8b62a4..8980ba1 100644
--- a/README.md
+++ b/README.md
@@ -94,6 +94,21 @@ $ NUM_WORKERS=4 ./example
Workers: 4
```
+You can provide multiple values using the CSV (RFC 4180) format:
+
+```go
+var args struct {
+ Workers []int `arg:"env"`
+}
+arg.MustParse(&args)
+fmt.Println("Workers:", args.Workers)
+```
+
+```
+$ WORKERS='1,99' ./example
+Workers: [1 99]
+```
+
### Usage strings
```go
var args struct {