1
0
mirror of https://github.com/rancher/os.git synced 2025-05-16 11:59:31 +00:00

Count number of args for ros config set command

This commit is contained in:
Julien Kassar 2017-02-17 14:15:18 -05:00
parent f041ceefc5
commit 1e6d38cbf0

View File

@ -147,6 +147,10 @@ func env2map(env []string) map[string]string {
}
func configSet(c *cli.Context) error {
if c.NArg() < 2 {
return nil
}
key := c.Args().Get(0)
value := c.Args().Get(1)
if key == "" {