From bb29f9cbe05a26b4b4865d5772788d3396262e7d Mon Sep 17 00:00:00 2001 From: sslivkoff Date: Wed, 11 Oct 2023 11:49:04 -0700 Subject: [PATCH] make block bound specifications more intuitive --- crates/cli/src/parse/blocks.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/cli/src/parse/blocks.rs b/crates/cli/src/parse/blocks.rs index 5d267c24..14d51386 100644 --- a/crates/cli/src/parse/blocks.rs +++ b/crates/cli/src/parse/blocks.rs @@ -232,6 +232,9 @@ async fn parse_block_token( end_block }; + let start_block = + if first_ref.starts_with('-') { start_block + 1 } else { start_block }; + if end_block < start_block { Err(ParseError::ParseError( "end_block should not be less than start_block".to_string(),