Skip to content

Commit 9603946

Browse files
committed
Fix Docs(issue_2125) Add PathFlag to StringFlag migration
1 parent 897feda commit 9603946

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/migrate-v2-to-v3.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,25 @@ Similar messages would be shown for other funcs.
379379
}
380380
```
381381

382+
## PathFlag
383+
384+
=== "v2"
385+
386+
```go
387+
&cli.PathFlag{
388+
Name: "foo",
389+
}
390+
```
391+
392+
=== "v3"
393+
394+
```go
395+
&cli.StringFlag{
396+
Name: "foo",
397+
TakesFiles: true,
398+
}
399+
```
400+
382401
## Authors
383402

384403
=== "v2"

0 commit comments

Comments
 (0)