util/startup.lua
changeset 12164 ac654fb19203
parent 11967 f5c6be4a3ecc
child 12247 73ecfe811526
--- a/util/startup.lua	Sat Jan 08 18:02:32 2022 +0100
+++ b/util/startup.lua	Sun Jan 09 15:16:09 2022 +0100
@@ -33,8 +33,8 @@
 	};
 }
 
-function startup.parse_args()
-	local opts, err, where = parse_args(arg, arg_settigs[prosody.process_type]);
+function startup.parse_args(profile)
+	local opts, err, where = parse_args(arg, arg_settigs[profile or prosody.process_type] or profile);
 	if not opts then
 		if err == "param-not-found" then
 			print("Unknown command-line option: "..tostring(where));