You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: img-export.rs
    path of file: ./repos/veloren/voxygen/src/bin
    
    the code of the file until where you have to start completion: use clap::Parser;
use common::figure::Segment;
use common_assets::{AssetExt, DotVoxAsset};
use std::{fs, path::Path};
use vek::{Mat4, Quaternion, Vec2, Vec3, Vec4};
use veloren_voxygen::{
    hud::item_imgs::{ImageSpec, ItemImagesSpec},
    ui::graphic::renderer::{draw_vox, SampleStrat, Transform},
};

#[derive(Parser)]
struct Cli {
    ///Optional w
    
pub fn main() {
    let args = Cli::parse();
    let manifest = ItemImagesSpec::load_expect("voxygen.item_image_manifest");
    for (_, spec) in manifest.read().0.iter() {
        match spec {
            ImageSpec::Vox(specifier, model_index) => {
                voxel_to_png(&specifier, Transform::default(), args.scale, model_index)
            },
            ImageSpec::VoxTrans(specifier, offset, [rot_x, rot_y, rot_z], zoom, model_index) => {
                voxel_to_png(
                    &specifier,
                    Transform {
                        ori: Quaternion::rotation_x(rot_x * std::f32::consts::PI / 180.0)
                            .rotated_y(rot_y * std::f32::consts::PI / 180.0)
                            .rotated_z(rot_z * std::f32::consts::PI / 180.0),
                        offset: Vec3::from(*offset),
                        /* FIXME: This is a dirty workaround to not cut off the edges of some
                         * objects like ./img-export/weapon/component/
                         * axe/poleaxe/bronze.vox more details here: https://gitlab.com/veloren/veloren/-/merge_requests/3494#note_1205030803 */
                        zoom: *zoom * 0.8,
                        orth: true,
                        stretch: false,
                    },
                    args.scale,
                    model_index,
                )
            },
            ImageSpec::Png(specifier) => {
                println!("Skip png image {}", specifier);
                continue;
            },
        }
    }
}