def AddImageHelp(): return """\ An image to apply to the disks being created. When using this option, the size of the disks must be at least as large as the image size. Use ``--size'' to adjust the size of the disks. {alias_table} This flag is mutually exclusive with ``--source-snapshot''. """.format(alias_table=image_utils.GetImageAliasTable())
def AddImageHelp(): """Returns detailed help for `--image` argument.""" template = """\ An image to apply to the disks being created. When using this option, the size of the disks must be at least as large as the image size. Use ``--size'' to adjust the size of the disks. {alias_table} This flag is mutually exclusive with ``--source-snapshot''. """ indent = template.find(template.lstrip()[0]) return template.format(alias_table=image_utils.GetImageAliasTable( indent=indent))
def AddImageHelp(): return """ Specifies the boot image for the instances. For each instance, a new boot disk will be created from the given image. Each boot disk will have the same name as the instance. {alias_table} When using this option, ``--boot-disk-device-name'' and ``--boot-disk-size'' can be used to override the boot disk's device name and size, respectively. By default, ``{default_image}'' is assumed for this flag. """.format(alias_table=image_utils.GetImageAliasTable(), default_image=constants.DEFAULT_IMAGE)
def AddImageHelp(): """Returns the detailed help for the `--image` flag.""" template = """ Specifies the boot image for the instances. For each instance, a new boot disk will be created from the given image. Each boot disk will have the same name as the instance. {alias_table} When using this option, ``--boot-disk-device-name'' and ``--boot-disk-size'' can be used to override the boot disk's device name and size, respectively. By default, ``{default_image}'' is assumed for this flag. """ # -1 for leading newline indent = template.find(template.lstrip()[0]) - 1 return template.format( alias_table=image_utils.GetImageAliasTable(indent=indent), default_image=constants.DEFAULT_IMAGE)