use clap::Parser;
use formattable::FormatArgOpt;
use serde::Serialize;
#[derive(Debug, Parser, Serialize)]
struct Cli {
#[clap(flatten)]
format: FormatArgOpt,
}
fn main() {
let cli = Cli::parse();
dbg!(&cli);
if let Some(format) = *cli.format {
println!("{}", format.to_string_pretty(&cli).unwrap());
}
}