Software /
code /
prosody
Comparison
util/startup.lua @ 11844:0f786c4a2cb2 0.11
util.startup: Correctly point out unknown short param (fixes #1691)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 12 Oct 2021 14:53:45 +0200 |
parent | 11539:3413fea9e6db |
child | 11846:6425dfa3de45 |
comparison
equal
deleted
inserted
replaced
11825:07a72f0a32df | 11844:0f786c4a2cb2 |
---|---|
47 if #param == 1 then | 47 if #param == 1 then |
48 param = short_params[param]; | 48 param = short_params[param]; |
49 end | 49 end |
50 | 50 |
51 if not param then | 51 if not param then |
52 print("Unknown command-line option: "..tostring(param)); | 52 print("Unknown command-line option: "..tostring(raw_param)); |
53 print("Perhaps you meant to use prosodyctl instead?"); | 53 print("Perhaps you meant to use prosodyctl instead?"); |
54 os.exit(1); | 54 os.exit(1); |
55 end | 55 end |
56 | 56 |
57 local param_k, param_v; | 57 local param_k, param_v; |