Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions docs/v3/examples/arguments/advanced.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/v3/examples/flags/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ e.g.

<!-- {
"args": ["&#45;&#45;help"],
"output": "&#45;&#45;lang value, &#45;l value.*language for the greeting.*default: \"english\""
"output": "&#45;&#45;lang string, &#45;l string.*language for the greeting.*default: \"english\""
} -->
```go
package main
Expand Down Expand Up @@ -336,7 +336,7 @@ For example this:

<!-- {
"args": ["&#45;&#45;help"],
"output": "&#45;&#45;port value"
"output": "&#45;&#45;port int"
} -->
```go
package main
Expand Down
2 changes: 1 addition & 1 deletion docs/v3/examples/flags/value-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Here is a more complete sample of a command using YAML support:

<!-- {
"args": ["&#45;&#45;help"],
"output": "&#45&#45;test value.*default: 0"
"output": "&#45&#45;test int.*default: 0"
} -->
```go
package main
Expand Down
3 changes: 2 additions & 1 deletion docs/v3/examples/full-api-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"io/ioutil"
"os"
"time"
"slices"

"github.com/urfave/cli/v3"
)
Expand Down Expand Up @@ -141,7 +142,7 @@ func main() {
&cli.BoolFlag{Value: true, Name: "fancier"},
&cli.DurationFlag{Name: "howlong", Aliases: []string{"H"}, Value: time.Second * 3},
&cli.FloatFlag{Name: "howmuch"},
&cli.IntFlag{Name: "longdistance", Validator: func (t int) error {
&cli.IntFlag{Name: "longdistance", Validator: func (t int64) error {
if t < 10 {
return fmt.Errorf("10 miles isnt long distance!!!!")
}
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ nav:
- Advanced: v3/examples/flags/advanced.md
- Arguments:
- Basics: v3/examples/arguments/basics.md
- Advanced: v3/examples/arguments/advanced.md
#- Advanced: v3/examples/arguments/advanced.md
- Subcommands:
- Basics: v3/examples/subcommands/basics.md
- Categories: v3/examples/subcommands/categories.md
Expand Down
Loading