print solve config to stderr

This commit is contained in:
mehbark 2026-07-08 17:01:31 -04:00
parent 948d7f5005
commit 636febaa1e

View file

@ -12,7 +12,7 @@ mod letterset;
fn main() {
let cfg = SolveConfig::parse();
println!("{cfg:#?}");
eprintln!("{cfg:#?}");
let mut dictionary: Vec<_> = BufReader::new(io::stdin().lock())
.lines()
@ -39,7 +39,8 @@ fn main() {
struct SolveConfig {
/// The maximum length of a solution.
///
/// Smaller lengths are more likely to fail, but may be faster. Should be >=26.
/// Smaller lengths are more likely to fail and make things slower, but they improve the result.
/// Should be >=26.
#[arg(short, long, default_value_t = 30)]
max_length: u8,