# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1645058375 -3600
# Node ID 7fe5cd8a10e24f793d706b06f32827a32aefdb50
# Parent  ec16fb7062476d7de2938c58d568cdadf64ab8eb
prosodyctl: Restore 'list --outdated'

Parsing --flags puts it into 'opts', so --outdated wasn't passed to
luarocks, breaking that functionality

diff -r ec16fb706247 -r 7fe5cd8a10e2 prosodyctl
--- a/prosodyctl	Tue Feb 15 22:14:40 2022 +0100
+++ b/prosodyctl	Thu Feb 17 01:39:35 2022 +0100
@@ -115,6 +115,10 @@
 		show_usage([[list]], [[Shows installed rocks]]);
 		return 0;
 	end
+	if opts.outdated then
+		-- put this back for luarocks
+		arg[1] = "--outdated";
+	end
 	local ret = call_luarocks("list", arg[1]);
 	return ret;
 end