properly format the changes
This commit is contained in:
parent
c8e8433719
commit
6406ca90c7
|
@ -135,21 +135,21 @@ To determine if an update happened in a script, check for error code 11.`,
|
||||||
Name: "version",
|
Name: "version",
|
||||||
Action: func(c *cli.Context) (err error) {
|
Action: func(c *cli.Context) (err error) {
|
||||||
if c.Bool("short") {
|
if c.Bool("short") {
|
||||||
fmt.Println(strings.Split(c.App.Version, " ")[0])
|
fmt.Println(strings.Split(c.App.Version, " ")[0])
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
version(c)
|
version(c)
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
Usage: versionText,
|
Usage: versionText,
|
||||||
Description: versionText,
|
Description: versionText,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "short",
|
Name: "short",
|
||||||
Aliases: []string{"s"},
|
Aliases: []string{"s"},
|
||||||
Usage: "print just the version number",
|
Usage: "print just the version number",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
cmds = append(cmds, tunnel.Commands()...)
|
cmds = append(cmds, tunnel.Commands()...)
|
||||||
|
|
Loading…
Reference in New Issue