1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B OpenNebula/one#6481: Modification on onecfg help (#2999)

in order not to show version parameter

Signed-off-by: 31ldtsON <strujillo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit 5e2ed4685b423ccb3227a3b7b109d98f192e011a)
This commit is contained in:
31ldtsON 2024-03-21 11:48:35 +01:00 committed by Tino Vázquez
parent 1e644ac8a9
commit ecb01f37f4

View File

@ -168,6 +168,9 @@ CommandParser::CmdParser.new(ARGV) do
Apply changes to configuration files
EOT
# Filter the options to exclude VERSION
options_without_version = CommandParser::OPTIONS.reject {|opt| opt[:name] == 'version' }
command :patch, patch_desc,
[:file, nil],
:options => [UNPRIVILEGED,
@ -175,7 +178,7 @@ CommandParser::CmdParser.new(ARGV) do
PREFIX,
PATCH_FORMAT,
PATCH_ALL] +
CommandParser::OPTIONS + LOG_MODES \
options_without_version + LOG_MODES \
do
OneCfg::LOG.get_logger(options)
rc = -1