// Copyright © 2026 David Caldwell use clap::{CommandFactory, Parser,ValueEnum, error::ErrorKind}; #[derive(Parser,Debug)] #[command(version, about, long_about = None, allow_hyphen_values = true)] struct Cli { /// Cell data, one cell per argument. /// /// Each row (including the first) must start with '--row' or '--header'. /// Example: /// table --header "column 1" "column 2" "column 3" --row a b c --row c d "and e" /// produces /// ┌──────────┬──────────┬──────────┐ /// │ column 1 │ column 2 │ column 3 │ /// ╞══════════╪══════════╪══════════╡ /// │ a │ b │ c │ /// ├──────────┼──────────┼──────────┤ /// │ c │ d │ and e │ /// └──────────┴──────────┴──────────┘ #[arg(trailing_var_arg = true, verbatim_doc_comment)] data: Vec, /// Sets a custom table style #[arg(short, long, value_name = "STYLE")] style: Option