From 27bb707db11495e39f3fc131637a55f727054252 Mon Sep 17 00:00:00 2001 From: Artem Chernikov Date: Tue, 27 May 2014 14:50:57 +0200 Subject: [PATCH] Align documentation with actual table column name of zypper products --- lib/suse/connect/cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/suse/connect/cli.rb b/lib/suse/connect/cli.rb index 9acdc5f7..810371df 100644 --- a/lib/suse/connect/cli.rb +++ b/lib/suse/connect/cli.rb @@ -53,10 +53,10 @@ def extract_options # rubocop:disable MethodLength @opts.on('-p', '--product [PRODUCT]', 'Activate PRODUCT. Defaults to the base SUSE Linux', ' Enterprise product on this system.', ' Product identifiers can be obtained with \'zypper products\'', - ' Format: --') do |opt| + ' Format: --') do |opt| check_if_param(opt, 'Please provide a product identifier') check_if_param((opt =~ /\S+-\S+-\S+/), 'Please provide the product identifier in this format: ' \ - '--. For installed products you can find these values by calling: ' \ + '--. For installed products you can find these values by calling: ' \ '\'zypper products\'. ') @options[:product] = { :name => opt.split('-')[0], :version => opt.split('-')[1], :arch => opt.split('-')[2] }