From 1c7c005d39e22bd66b0629790b54954df037fc03 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 8 Jul 2011 15:30:15 +0200 Subject: [PATCH] added descriptions for file, range and text in CLI documentation --- src/cli/command_parser.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/cli/command_parser.rb b/src/cli/command_parser.rb index 9bfbfb576b..6190027c2d 100755 --- a/src/cli/command_parser.rb +++ b/src/cli/command_parser.rb @@ -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)