From c89727a7a93294803343d5b4d9bfd1ff9a3accdd Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 30 Jul 2018 11:47:26 +0200 Subject: [PATCH] B #2254 spurios syntax help on onehost delete --- src/cli/command_parser.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli/command_parser.rb b/src/cli/command_parser.rb index fdb2898b07..78978a9fc6 100644 --- a/src/cli/command_parser.rb +++ b/src/cli/command_parser.rb @@ -575,8 +575,11 @@ module CommandParser } unless argument - puts error_msg if error_msg - puts "command #{name}: argument #{id} must be one of #{format.join(', ')}" + if error_msg + puts error_msg + else + puts "command #{name}: argument #{id} must be one of #{format.join(', ')}" + end exit -1 end