appease gfmrun

main
Lynn Cyrin 5 years ago
parent daa24f660a
commit 9ab51c32d9
No known key found for this signature in database
GPG Key ID: 9E60BEE0555C367B

@ -649,6 +649,9 @@ does not provide a required flag, they will be shown an error message.
Take for example this app that reqiures the `lang` flag:
<!-- {
"error": "Required flag \"lang\" not set"
} -->
```go
package main
@ -673,7 +676,6 @@ func main() {
}
app.Action = func(c *cli.Context) error {
var output string
if c.String("lang") == "spanish" {
output = "Hola"
@ -681,7 +683,6 @@ func main() {
output = "Hello"
}
fmt.Println(output)
return nil
}

Loading…
Cancel
Save