--ssh-key should be string not bool (#135)

--ssh-key should be string not bool

Fix #134

Reviewed-on: https://gitea.com/gitea/tea/pulls/135
Reviewed-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
techknowlogick 2020-06-12 02:43:55 +00:00 committed by Lunny Xiao
parent 59fe58577a
commit b2efb45f64

View File

@ -55,7 +55,7 @@ var cmdLoginAdd = cli.Command{
Usage: "Access token. Can be obtained from Settings > Applications", Usage: "Access token. Can be obtained from Settings > Applications",
Required: true, Required: true,
}, },
&cli.BoolFlag{ &cli.StringFlag{
Name: "ssh-key", Name: "ssh-key",
Aliases: []string{"s"}, Aliases: []string{"s"},
Usage: "Path to a SSH key to use for pull/push operations", Usage: "Path to a SSH key to use for pull/push operations",