cmdline 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Rakefile +1 -1
- data/lib/cmdline.rb +2 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ require "rubygems"
|
|
9
9
|
|
10
10
|
SHORTNAME ='cmdline' # this should be the rubyforge project name
|
11
11
|
DESC ='Yet Another Command Line Tool'
|
12
|
-
PKG_VERSION ='0.0.
|
12
|
+
PKG_VERSION ='0.0.2'
|
13
13
|
LONG_DESC = <<END_DESC
|
14
14
|
Library used to handle command line arguments.
|
15
15
|
END_DESC
|
data/lib/cmdline.rb
CHANGED
@@ -220,9 +220,9 @@ class CommandLine
|
|
220
220
|
usage "illegal value: #{val} for: #{definition[FLAG_1]}"
|
221
221
|
end
|
222
222
|
elsif check.kind_of? Proc
|
223
|
-
usage "illegal value: #{val} for: #{definition[
|
223
|
+
usage "illegal value: #{val} for: #{definition[FLAG_1]}" unless definition[CHECK].call val
|
224
224
|
elsif check.kind_of? Array
|
225
|
-
usage "illegal value: #{val} for: #{definition[
|
225
|
+
usage "illegal value: #{val} for: #{definition[FLAG_1]}" unless definition[CHECK].include? val
|
226
226
|
end
|
227
227
|
|
228
228
|
return true
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: cmdline
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.0.2
|
7
|
+
date: 2007-07-22 00:00:00 +02:00
|
8
8
|
summary: "cmdline: Yet Another Command Line Tool"
|
9
9
|
require_paths:
|
10
10
|
- lib
|