From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 994CC440F3D for ; Fri, 15 Nov 2019 18:45:00 +0300 (MSK) From: Leonid Date: Fri, 15 Nov 2019 18:44:32 +0300 Message-Id: In-Reply-To: References: In-Reply-To: References: Subject: [Tarantool-patches] [PATCH 2/2] luarocks: add a kludge for option force of luarocks remove List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alexander.turenko@tarantool.org Cc: tarantool-patches@dev.tarantool.org --- 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