summaryrefslogtreecommitdiff
path: root/lib/chef/knife/user_show.rb
diff options
context:
space:
mode:
authorRanjib Dey <ranjib@pagerduty.com>2013-04-11 20:54:22 -0700
committerBryan McLellan <btm@opscode.com>2013-05-24 10:27:03 -0700
commit4133160972a9972a9a062579504faa40eaa4c8db (patch)
treef74b21723c15cb0abc0420f16ef1ee50662e3120 /lib/chef/knife/user_show.rb
parent1e2dd728f8d9ad724aa2980d5fb15c2e26d6bed8 (diff)
downloadchef-4133160972a9972a9a062579504faa40eaa4c8db.tar.gz
multi attribute return
Diffstat (limited to 'lib/chef/knife/user_show.rb')
-rw-r--r--lib/chef/knife/user_show.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/chef/knife/user_show.rb b/lib/chef/knife/user_show.rb
index 5088210b4d..d923cafcec 100644
--- a/lib/chef/knife/user_show.rb
+++ b/lib/chef/knife/user_show.rb
@@ -22,6 +22,8 @@ class Chef
class Knife
class UserShow < Knife
+ include Knife::Core::MultiAttributeRetrunOption
+
deps do
require 'chef/user'
require 'chef/json_compat'
@@ -29,11 +31,6 @@ class Chef
banner "knife user show USER (options)"
- option :attribute,
- :short => "-a ATTR",
- :long => "--attribute ATTR",
- :description => "Show only one attribute"
-
def run
@user_name = @name_args[0]