'Set number of containers to run for a service.
Numbers are specified in the form `service=num` as arguments.
For example:
$ docker-compose scale web=2 worker=3
This command is deprecated. Use the up command with the `--scale` flag
instead.
Usage: scale [options] [SERVICE=NUM...]
Options:
-t, --timeout TIMEOUT      Specify a shutdown timeout in seconds.
(default: 10)'

def scale(self, options):

    timeout = timeout_from_opts(options)
    if (self.project.config_version == V2_2):
        raise UserError(u'The    scale    command    is    incompatible    with    the    v2.2    format.    Use    the    up    command    with    the    --scale    flag    instead.')
    else:
        log.warn(u'The    scale    command    is    deprecated.    Use    the    up    command    with    the    --scale    flag    instead.')
    for (service_name, num) in parse_scale_args(options[u'SERVICE=NUM']).items():
        self.project.get_service(service_name).scale(num, timeout=timeout)
