Comparison

util/argparse.lua @ 11846:6425dfa3de45

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 12 Oct 2021 14:59:18 +0200
parent 10936:d770435f0f84
child 12475:553c6204fe5b
comparison
equal deleted inserted replaced
11845:97c1399720c2 11846:6425dfa3de45
24 if #param == 1 and short_params then 24 if #param == 1 and short_params then
25 param = short_params[param]; 25 param = short_params[param];
26 end 26 end
27 27
28 if not param then 28 if not param then
29 return nil, "param-not-found", param; 29 return nil, "param-not-found", raw_param;
30 end 30 end
31 31
32 local param_k, param_v; 32 local param_k, param_v;
33 if value_params[param] then 33 if value_params[param] then
34 param_k, param_v = param, table.remove(arg, 1); 34 param_k, param_v = param, table.remove(arg, 1);