few further improvements
This commit is contained in:
parent
36ecd62faf
commit
0f942f6738
1 changed files with 5 additions and 1 deletions
|
@ -51,7 +51,7 @@ fn main() -> Result<(), ureq::Error> {
|
|||
break;
|
||||
}
|
||||
|
||||
if print_item(&options.query, entry).is_some() && i != options.limit {
|
||||
if print_item(&options.query, entry).is_some() && i + 2 <= options.limit {
|
||||
println!();
|
||||
}
|
||||
}
|
||||
|
@ -239,6 +239,10 @@ fn parse_args() -> Options {
|
|||
ap.parse_args_or_exit();
|
||||
}
|
||||
|
||||
if options.limit == 0 {
|
||||
options.limit = 1;
|
||||
}
|
||||
|
||||
options.query = query_vec.join(" ");
|
||||
options
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue