getopt-declare 1.25 → 1.26
Sign up to get free protection for your applications and to get access to all the features.
- data/Declare.rdoc +20 -6
- data/HISTORY.txt +10 -0
- data/Rakefile +4 -0
- data/lib/Getopt/Declare.rb +1739 -1738
- data/test/test_cmdline_array.rb +3 -5
- metadata +2 -2
data/test/test_cmdline_array.rb
CHANGED
@@ -8,11 +8,11 @@ class TC_Array < Test::Unit::TestCase
|
|
8
8
|
|
9
9
|
def setup
|
10
10
|
@file = __FILE__
|
11
|
-
@args = Getopt::Declare.new(
|
11
|
+
@args = Getopt::Declare.new( <<EOF, :build )
|
12
12
|
-v <value:i> [etc] One or more values
|
13
13
|
<infile:if> Input file [required]
|
14
14
|
-o <outfiles:of>... Output files
|
15
|
-
|
15
|
+
EOF
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_infile
|
@@ -52,10 +52,8 @@ class TC_Array < Test::Unit::TestCase
|
|
52
52
|
def test_usage
|
53
53
|
usage = @args.usage
|
54
54
|
# We don't check first lines, as they contain date
|
55
|
-
usage.sub!(/.*Options
|
56
|
-
puts usage
|
55
|
+
usage.sub!(/.*Options:\n/m, '')
|
57
56
|
assert_equal( <<"EOF", usage )
|
58
|
-
|
59
57
|
-v <value> [etc] One or more values
|
60
58
|
<infile> Input file
|
61
59
|
-o <outfiles>... Output files
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.1
|
|
3
3
|
specification_version: 1
|
4
4
|
name: getopt-declare
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "1.
|
7
|
-
date: 2007-06-
|
6
|
+
version: "1.26"
|
7
|
+
date: 2007-06-17 00:00:00 -03:00
|
8
8
|
summary: Getopt-Declare is a command-line argument parser.
|
9
9
|
require_paths:
|
10
10
|
- lib
|