code: func (cli *NetworkCli) Cmd(chain string, args ...string) error {
  	if len(args) > 2 {
  		method, exists := cli.getMethod(args[:3]...)
  		if exists {
  			return method(chain+" "+args[0]+" "+args[1], args[3:]...)
  		}
  	}
  	if len(args) > 1 {
  		method, exists := cli.getMethod(args[:2]...)
  		if exists {
  			return method(chain+" "+args[0], args[2:]...)
  		}
  	}
  	if len(args) > 0 {
  		method, exists := cli.getMethod(args[0])
  		if !exists {
  			return fmt.Errorf("%s: '%s' is not a %s command. See '%s --help'", chain, args[0], chain, chain)
  		}
  		return method(chain, args[1:]...)
  	}
  	flag.Usage()
  	return nil
  }
docs: // Cmd is borrowed from Docker UI and acts as the entry point for network UI commands.
  // network UI commands are designed to be invoked from multiple parent chains