[Tarantool-patches] [PATCH 2/2] luarocks: add a kludge for option force of luarocks remove

Leonid lvasiliev at tarantool.org
Fri Nov 15 18:44:32 MSK 2019


---
 extra/dist/tarantoolctl.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
index 09302ea9c..25c3fb1a2 100755
--- a/extra/dist/tarantoolctl.in
+++ b/extra/dist/tarantoolctl.in
@@ -950,6 +950,10 @@ local function rocks()
         table.insert(positional_arguments, "--all")
     end
 
+    if positional_arguments[1] == "remove" and  find_arg("force") then
+        table.insert(positional_arguments, "--force")
+    end
+
     -- Tweak help messages
     util.see_help = function(command, program)
         -- TODO: print extended help message here
@@ -1406,6 +1410,7 @@ local function populate_arguments()
         { 'server',      'string'  },
         { 'language',    'string'  },
         { 'all',         'boolean' },
+        { 'force',       'boolean' },
     })
 
     local cmd_name
-- 
2.17.1



More information about the Tarantool-patches mailing list