@sonic_installer.command('binary-version')
@click.argument('binary_image_path')
def binary_version(binary_image_path):
    ' Get version from local binary image file '
    if ('binary_version' in sys.argv):
        print_deprecation_warning('binary_version', 'binary-version')
    bootloader = get_bootloader()
    version = bootloader.get_binary_image_version(binary_image_path)
    if (not version):
        click.echo('Image file does not exist or is not a valid SONiC image file')
        sys.exit(1)
    else:
        click.echo(version)
Get version from local binary image file
@sonic_installer.command('binary-version')
@click.argument('binary_image_path')
def binary_version(binary_image_path):
    '  '
    if ('binary_version' in sys.argv):
        print_deprecation_warning('binary_version', 'binary-version')
    bootloader = get_bootloader()
    version = bootloader.get_binary_image_version(binary_image_path)
    if (not version):
        click.echo('Image file does not exist or is not a valid SONiC image file')
        sys.exit(1)
    else:
        click.echo(version)