Fix v1 aliases syntax in v2 docs
This commit is contained in:
parent
d2d2098085
commit
bed468fb76
@ -426,15 +426,18 @@ func main() {
|
|||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "lang, l",
|
Name: "lang",
|
||||||
|
Aliases: []string{"l"},
|
||||||
Value: "english",
|
Value: "english",
|
||||||
Usage: "Language for the greeting",
|
Usage: "Language for the greeting",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "config, c",
|
Name: "config",
|
||||||
|
Aliases: []string{"c"},
|
||||||
Usage: "Load configuration from `FILE`",
|
Usage: "Load configuration from `FILE`",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
Commands: []*cli.Command{
|
Commands: []*cli.Command{
|
||||||
{
|
{
|
||||||
Name: "complete",
|
Name: "complete",
|
||||||
@ -570,7 +573,8 @@ func main() {
|
|||||||
|
|
||||||
app.Flags = []cli.Flag {
|
app.Flags = []cli.Flag {
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "password, p",
|
Name: "password",
|
||||||
|
Aliases: []string{"p"},
|
||||||
Usage: "password for the mysql database",
|
Usage: "password for the mysql database",
|
||||||
FilePath: "/etc/mysql/password",
|
FilePath: "/etc/mysql/password",
|
||||||
},
|
},
|
||||||
@ -1309,7 +1313,8 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cli.HelpFlag = &cli.BoolFlag{
|
cli.HelpFlag = &cli.BoolFlag{
|
||||||
Name: "haaaaalp", Aliases: []string{"halp"},
|
Name: "haaaaalp",
|
||||||
|
Aliases: []string{"halp"},
|
||||||
Usage: "HALP",
|
Usage: "HALP",
|
||||||
EnvVars: []string{"SHOW_HALP", "HALPPLZ"},
|
EnvVars: []string{"SHOW_HALP", "HALPPLZ"},
|
||||||
}
|
}
|
||||||
@ -1344,7 +1349,8 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cli.VersionFlag = &cli.BoolFlag{
|
cli.VersionFlag = &cli.BoolFlag{
|
||||||
Name: "print-version", Aliases: []string{"V"},
|
Name: "print-version",
|
||||||
|
Aliases: []string{"V"},
|
||||||
Usage: "print only the version",
|
Usage: "print only the version",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user