Browse Source

skip empty --next

Simon Krajewski 13 years ago
parent
commit
5d4ba64059
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main.ml

+ 2 - 0
main.ml

@@ -393,6 +393,8 @@ let rec process_params create pl =
 			let ctx = create (!each_params @ (List.rev acc)) in
 			init ctx;
 			ctx.flush()
+		| "--next" :: l when acc = [] -> (* skip empty --next *)
+			loop [] l
 		| "--next" :: l ->
 			let ctx = create (!each_params @ (List.rev acc)) in
 			ctx.has_next <- true;