Skip to content

Commit 3b62b78

Browse files
committed
onebrc-probe(main): advertise lane 's' in CLI usage + unknown-lane error
Addresses CodeRabbit minor (#637): the dispatch handles "s" but the usage/help strings and unknown-lane message didn't list it. Scoped to this PR's lane. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MLBnPuScZy6w9di2QEjsXM
1 parent 8a14994 commit 3b62b78

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/onebrc-probe/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//!
44
//! ```text
55
//! onebrc-probe gen <path> <rows> <seed>
6-
//! onebrc-probe run <path> <lane:a|b|c|d|e|f|r> [workers] [batches]
6+
//! onebrc-probe run <path> <lane:a|b|c|d|e|f|r|s> [workers] [batches]
77
//! ```
88
//!
99
//! Lane `b` requires `--features lane-b`; lane `d` and lane `e` require
@@ -23,7 +23,7 @@ fn main() {
2323
Some("run") => cmd_run(&args[2..]),
2424
_ => {
2525
eprintln!(
26-
"usage:\n onebrc-probe gen <path> <rows> <seed>\n onebrc-probe run <path> <lane:a|b|c|d|e|f|r> [workers] [batches]"
26+
"usage:\n onebrc-probe gen <path> <rows> <seed>\n onebrc-probe run <path> <lane:a|b|c|d|e|f|r|s> [workers] [batches]"
2727
);
2828
std::process::exit(2);
2929
}
@@ -55,7 +55,7 @@ fn cmd_gen(args: &[String]) {
5555
fn cmd_run(args: &[String]) {
5656
let path = PathBuf::from(
5757
args.first()
58-
.expect("usage: run <path> <lane:a|b|c|d|e|f|r> [workers] [batches]"),
58+
.expect("usage: run <path> <lane:a|b|c|d|e|f|r|s> [workers] [batches]"),
5959
);
6060
let lane = args.get(1).map(String::as_str).unwrap_or("a");
6161
let workers: usize = args
@@ -201,7 +201,7 @@ fn cmd_run(args: &[String]) {
201201
}
202202
}
203203
other => {
204-
eprintln!("unknown lane '{other}' (expected 'a', 'b', 'c', 'd', 'e', 'f', or 'r')");
204+
eprintln!("unknown lane '{other}' (expected 'a', 'b', 'c', 'd', 'e', 'f', 'r', or 's')");
205205
std::process::exit(2);
206206
}
207207
};

0 commit comments

Comments
 (0)