Add error conditions to usage

This commit is contained in:
Ian Manske 2024-07-18 07:29:26 -07:00
parent 5778a64ddf
commit 4ac2b2b5ef

View File

@ -35,6 +35,10 @@ impl Command for Window {
"Creates a sliding window of `window_size` that slide by n rows/elements across input." "Creates a sliding window of `window_size` that slide by n rows/elements across input."
} }
fn extra_usage(&self) -> &str {
"This command will error if `window_size` or `stride` are negative or zero."
}
fn examples(&self) -> Vec<Example> { fn examples(&self) -> Vec<Example> {
vec![ vec![
Example { Example {