Prevent reboot after fastboot -w image.zip? Is it possible to prevent the automatic reboot that follows

fastboot -w image.zip


? This would be quite useful for batch files. Thanks for any hint :-)
I believe you're looking for the "--skip-reboot" switch, ex:

fastboot -w update image-marlin-opm1.171019.012.zip --skip-reboot


C:>fastboot --help

commands:
  update &lt;filename&gt;                        Reflash device from update.zip.
                                           Sets the flashed slot as active.
  flashall                                 Flash boot, system, vendor, and --
                                           if found -- recovery. If the device
                                           supports slots, the slot that has
                                           been flashed to is set as active.
                                           Secondary images may be flashed to
                                           an inactive slot.
  flash &lt;partition&gt; [ &lt;filename&gt; ]         Write a file to a flash partition.
  flashing lock                            Locks the device. Prevents flashing.
  flashing unlock                          Unlocks the device. Allows flashing
                                           any partition except
                                           bootloader-related partitions.
  flashing lock_critical                   Prevents flashing bootloader-related
                                           partitions.
  flashing unlock_critical                 Enables flashing bootloader-related
                                           partitions.
  flashing get_unlock_ability              Queries bootloader to see if the
                                           device is unlocked.
  flashing get_unlock_bootloader_nonce     Queries the bootloader to get the
                                           unlock nonce.
  flashing unlock_bootloader &lt;request&gt;     Issue unlock bootloader using request.
  flashing lock_bootloader                 Locks the bootloader to prevent
                                           bootloader version rollback.
  erase &lt;partition&gt;                        Erase a flash partition.
  format[:[&lt;fs type&gt;][:[&lt;size&gt;]] &lt;partition&gt;
                                           Format a flash partition. Can
                                           override the fs type and/or size
                                           the bootloader reports.
  getvar &lt;variable&gt;                        Display a bootloader variable.
  set_active &lt;slot&gt;                        Sets the active slot. If slots are
                                           not supported, this does nothing.
  boot &lt;kernel&gt; [ &lt;ramdisk&gt; [ &lt;second&gt; ] ] Download and boot kernel.
  flash:raw &lt;bootable-partition&gt; &lt;kernel&gt; [ &lt;ramdisk&gt; [ &lt;second&gt; ] ]
                                           Create bootimage and flash it.
  devices [-l]                             List all connected devices [with
                                           device paths].
  continue                                 Continue with autoboot.
  reboot [bootloader|emergency]            Reboot device [into bootloader or emergency mode].
  reboot-bootloader                        Reboot device into bootloader.
  oem &lt;parameter1&gt; ... &lt;parameterN&gt;        Executes oem specific command.
  stage &lt;infile&gt;                           Sends contents of &lt;infile&gt; to stage for
                                           the next command. Supported only on
                                           Android Things devices.
  get_staged &lt;outfile&gt;                     Receives data to &lt;outfile&gt; staged by the
                                           last command. Supported only on Android
                                           Things devices.
  help                                     Show this help message.

options:
  -w                                       Erase userdata and cache (and format
                                           if supported by partition type).
  -u                                       Do not erase partition before
                                           formatting.
  -s &lt;specific device&gt;                     Specify a device. For USB, provide either
                                           a serial number or path to device port.
                                           For ethernet, provide an address in the
                                           form &lt;protocol&gt;:&lt;hostname&gt;[:port] where
                                           &lt;protocol&gt; is either tcp or udp.
  -c &lt;cmdline&gt;                             Override kernel commandline.
  -i &lt;vendor id&gt;                           Specify a custom USB vendor id.
  -b, --base &lt;base_addr&gt;                   Specify a custom kernel base
                                           address (default: 0x10000000).
  --kernel-offset                          Specify a custom kernel offset.
                                           (default: 0x00008000)
  --ramdisk-offset                         Specify a custom ramdisk offset.
                                           (default: 0x01000000)
  --tags-offset                            Specify a custom tags offset.
                                           (default: 0x00000100)
  -n, --page-size &lt;page size&gt;              Specify the nand page size
                                           (default: 2048).
  -S &lt;size&gt;[K|M|G]                         Automatically sparse files greater
                                           than 'size'. 0 to disable.
  --slot &lt;slot&gt;                            Specify slot name to be used if the
                                           device supports slots. All operations
                                           on partitions that support slots will
                                           be done on the slot specified.
                                           'all' can be given to refer to all slots.
                                           'other' can be given to refer to a
                                           non-current slot. If this flag is not
                                           used, slotted partitions will default
                                           to the current active slot.
  -a, --set-active[=&lt;slot&gt;]                Sets the active slot. If no slot is
                                           provided, this will default to the value
                                           given by --slot. If slots are not
                                           supported, this does nothing. This will
                                           run after all non-reboot commands.
  --skip-secondary                         Will not flash secondary slots when
                                           performing a flashall or update. This
                                           will preserve data on other slots.
  --skip-reboot                            Will not reboot the device when
                                           performing commands that normally
                                           trigger a reboot.
  --disable-verity                         Set the disable-verity flag in the
                                           the vbmeta image being flashed.
  --disable-verification                   Set the disable-verification flag in                                           the vbmeta image being flashed.
  --unbuffered                             Do not buffer input or output.
  --version                                Display version.
  -h, --help                               show this message.