fix: error out if missing server arg
This commit is contained in:
parent
a1bce4661b
commit
6be54c670a
@ -87,6 +87,10 @@ var serverRemoveCommand = &cli.Command{
|
|||||||
HideHelp: true,
|
HideHelp: true,
|
||||||
Action: func(c *cli.Context) error {
|
Action: func(c *cli.Context) error {
|
||||||
server := c.Args().First()
|
server := c.Args().First()
|
||||||
|
if server == "" {
|
||||||
|
cli.ShowSubcommandHelp(c)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if err := client.DeleteContext(server); err != nil {
|
if err := client.DeleteContext(server); err != nil {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user