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:
parent
f041ceefc5
commit
1e6d38cbf0
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user