Software / code / prosody
Comparison
prosodyctl @ 12292:7fe5cd8a10e2
prosodyctl: Restore 'list --outdated'
Parsing --flags puts it into 'opts', so --outdated wasn't passed to
luarocks, breaking that functionality
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 17 Feb 2022 01:39:35 +0100 |
| parent | 12267:a52a0680fcd8 |
| child | 12435:1ee72c0013f3 |
comparison
equal
deleted
inserted
replaced
| 12291:ec16fb706247 | 12292:7fe5cd8a10e2 |
|---|---|
| 112 function commands.list(arg) | 112 function commands.list(arg) |
| 113 local opts = parse_args(arg, only_help); | 113 local opts = parse_args(arg, only_help); |
| 114 if opts.help then | 114 if opts.help then |
| 115 show_usage([[list]], [[Shows installed rocks]]); | 115 show_usage([[list]], [[Shows installed rocks]]); |
| 116 return 0; | 116 return 0; |
| 117 end | |
| 118 if opts.outdated then | |
| 119 -- put this back for luarocks | |
| 120 arg[1] = "--outdated"; | |
| 117 end | 121 end |
| 118 local ret = call_luarocks("list", arg[1]); | 122 local ret = call_luarocks("list", arg[1]); |
| 119 return ret; | 123 return ret; |
| 120 end | 124 end |
| 121 | 125 |