aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 68f2d542..5db1c51a 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -33,8 +33,8 @@ local arg_settigs = {
};
}
-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));