We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f1fbf1 + 0275363 commit 8f11321Copy full SHA for 8f11321
src/main.rs
@@ -747,10 +747,26 @@ impl Config {
747
}
748
749
750
+fn check_bounds(start: &Option<Bound>, end: &Option<Bound>) -> Result<(), Error> {
751
+ match (&start, &end) {
752
+ (Some(Bound::Date(start)), Some(Bound::Date(end))) if end < start => {
753
+ bail!(
754
+ "end should be after start, got start: {:?} and end {:?}",
755
+ start,
756
+ end
757
+ );
758
+ },
759
+ _ => {}
760
+ }
761
+
762
+ Ok(())
763
+}
764
765
fn run() -> Result<(), Error> {
766
env_logger::try_init()?;
767
let args = env::args_os().filter(|a| a != "bisect-rustc");
768
let args = Opts::from_iter(args);
769
+ check_bounds(&args.start, &args.end)?;
770
let cfg = Config::from_args(args)?;
771
772
let client = Client::new();
0 commit comments