|
@@ -103,7 +103,7 @@ fn parse_range(arg: &str) -> Result<RangeInclusive<usize>, Error> {
|
|
(None, None) if range => Ok(0..=PEN_MAX),
|
|
(None, None) if range => Ok(0..=PEN_MAX),
|
|
(None, None) => Err(Error::new(ErrorKind::InvalidValue)),
|
|
(None, None) => Err(Error::new(ErrorKind::InvalidValue)),
|
|
(Some(d1), None) if !range => Ok(d1..=d1),
|
|
(Some(d1), None) if !range => Ok(d1..=d1),
|
|
- (Some(d1), None) => Ok(ret(d1, PEN_MAX, true)),
|
|
|
|
|
|
+ (Some(d1), None) => Ok(d1..=PEN_MAX),
|
|
(None, Some(d2)) if !range => Ok(d2..=d2),
|
|
(None, Some(d2)) if !range => Ok(d2..=d2),
|
|
(None, Some(d2)) => Ok(ret(0, d2, inclusive)),
|
|
(None, Some(d2)) => Ok(ret(0, d2, inclusive)),
|
|
(Some(d1), Some(d2)) if d1 > d2 => Err(Error::new(ErrorKind::InvalidValue)),
|
|
(Some(d1), Some(d2)) if d1 > d2 => Err(Error::new(ErrorKind::InvalidValue)),
|