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

oneuser show without arguments asks for logged user's info

This commit is contained in:
Javi Fontan 2011-07-11 16:04:03 +02:00
parent 0940802149
commit 3c24186274

View File

@ -137,8 +137,10 @@ cmd=CommandParser::CmdParser.new(ARGV) do
Shows information for the given User
EOT
command :show, show_desc, :userid, :options=>OpenNebulaHelper::XML do
helper.show_resource(args[0],options)
command :show, show_desc, [:userid, nil],
:options=>OpenNebulaHelper::XML do
user=args[0] || OpenNebula::User::SELF
helper.show_resource(user,options)
end
end