While migrating from urfave/cli/v2 to v3 I have found few differences in the generated docs.
DefaultText
I have a cli.StringFlag with a DefaultText (default text of the flag for usage purposes):
&cli.StringFlag{
Name: "kubeconfig",
Usage: "kubeconfig path",
Destination: &appCtx.Kubeconfig,
DefaultText: "$HOME/.kube/config or $KUBECONFIG if set",
}
Is it expected?
cli.StringSlice
Moving from the cli.StringSlice to the []string is adding the empty slice as default:
// v2
**--agent-args**="": agents extra arguments
// v3
**--agent-args**="": agents extra arguments (default: [])
quotes
Quotes for the default strings are missing:
// v2
**--mode**="": k3k mode type (shared, virtual) (default: "shared")
// v3
**--mode**="": k3k mode type (shared, virtual) (default: shared)