mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
added descriptions for file, range and text in CLI documentation
This commit is contained in:
parent
2d1f173ca2
commit
1c7c005d39
@ -62,9 +62,17 @@ module CommandParser
|
||||
@args = args
|
||||
@options = Hash.new
|
||||
|
||||
set :format, :file, "" do |arg| format_file(arg) ; end
|
||||
set :format, :range, "" do |arg| format_range(arg) ; end
|
||||
set :format, :text, "" do |arg| format_text(arg) ; end
|
||||
set :format, :file, "Path to a file" do |arg|
|
||||
format_file(arg)
|
||||
end
|
||||
|
||||
set :format, :range, "List of id's in the form 1,8..15" do |arg|
|
||||
format_range(arg)
|
||||
end
|
||||
|
||||
set :format, :text, "String" do |arg|
|
||||
format_text(arg)
|
||||
end
|
||||
|
||||
instance_eval(&block)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user