mirror of
https://github.com/rancher/os.git
synced 2025-05-17 12:29:34 +00:00
Count number of args for ros config set command
This commit is contained in:
parent
f041ceefc5
commit
1e6d38cbf0
@ -147,6 +147,10 @@ func env2map(env []string) map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func configSet(c *cli.Context) error {
|
func configSet(c *cli.Context) error {
|
||||||
|
if c.NArg() < 2 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
key := c.Args().Get(0)
|
key := c.Args().Get(0)
|
||||||
value := c.Args().Get(1)
|
value := c.Args().Get(1)
|
||||||
if key == "" {
|
if key == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user