clix/archive.lua

changeset 90
3115bd81b9de
parent 81
e87f4d0b1a80
child 92
a629b953780c
--- a/clix/archive.lua	Sat Jun 30 01:00:16 2012 +0200
+++ b/clix/archive.lua	Wed Jul 04 07:51:35 2012 +0200
@@ -41,11 +41,17 @@
 				print_message(result[i]);
 			end
 			if result.last then
-				io.stderr:write "--More--"
-				if io.read"*l" then
+				local fetch_next = opts.everything;
+				if opts.interactive and not fetch_next then
+					io.stderr:write "--More--"
+					fetch_next = io.read"*l";
+				end
+				if fetch_next then
 					opts.after = result.last;
 					conn:query_archive(opts.to, opts, handle_results);
 					return
+				else
+					conn:info("Next page: --after=%s", result.last);
 				end
 			end
 			conn:close();

mercurial