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:
parent
0940802149
commit
3c24186274
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user