Skip to content

Commit

Permalink
Align documentation with actual table column name of zypper products
Browse files Browse the repository at this point in the history
  • Loading branch information
kalabiyau committed May 27, 2014
1 parent 1f0c18f commit 27bb707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/suse/connect/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: <name>-<version>-<architecture>') do |opt|
' Format: <internal name>-<version>-<architecture>') 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: ' \
'<name>-<version>-<architecture>. For installed products you can find these values by calling: ' \
'<internal name>-<version>-<architecture>. 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] }
Expand Down

0 comments on commit 27bb707

Please sign in to comment.