use std::io;
use clap::Parser;
use rs_xsheet2jsonl::xpath2sheet2rows2stdout;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None, arg_required_else_help = true)]
struct Args {
#[arg(short, long)]
xlsx_path: String,
#[arg(short, long, default_value = "Sheet1")]
sheet_name: String,
}
fn main() -> Result<(), io::Error> {
let args = Args::parse();
xpath2sheet2rows2stdout(&args.xlsx_path, &args.sheet_name)?;
Ok(())
}