Skip to content

Commit

Permalink
fix example and use actual output
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jul 14, 2024
1 parent 71d54df commit 9702f70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ urfave/cli-docs/v3 is an extended documentation library for use with urfave/cli/
package main

import (
"context"
"fmt"
"os"

Expand All @@ -39,7 +40,7 @@ func main() {
app := &cli.Command{
Name: "greet",
Usage: "say a greeting",
Action: func(c *cli.Context) error {
Action: func(ctx context.Context, c *cli.Command) error {
fmt.Println("Greetings")
return nil
},
Expand Down Expand Up @@ -79,4 +80,5 @@ greet
```
greet [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]
```

````

0 comments on commit 9702f70

Please sign in to comment.