gli 0.3.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +7 -1
- data/lib/gli.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -8,6 +8,12 @@ This is a DSL you can use to create a command line interface like git, gem or sv
|
|
8
8
|
|
9
9
|
== Use
|
10
10
|
|
11
|
+
Note that the latest version of this gem is hosted at [http://www.gemcutter.org], so if you haven't set it up yet, do so:
|
12
|
+
|
13
|
+
# Only needed if you haven't used/setup Gemcutter before
|
14
|
+
sudo gem install gemcutter
|
15
|
+
sudo gem tumble
|
16
|
+
|
11
17
|
Install if you need to:
|
12
18
|
|
13
19
|
sudo gem install gli
|
@@ -98,7 +104,7 @@ You can also specify some global code to run before, after and on errors:
|
|
98
104
|
end
|
99
105
|
|
100
106
|
on_error do |ex|
|
101
|
-
puts "We
|
107
|
+
puts "We got an error"
|
102
108
|
return true # does the standard error handling code
|
103
109
|
# return false # this would skip standard error handling code
|
104
110
|
end
|
data/lib/gli.rb
CHANGED
@@ -171,7 +171,7 @@ module GLI
|
|
171
171
|
# * the sublist has a flag left in it - unknown flag; we bail
|
172
172
|
# * the sublist has a non-flag left in it - this is the command (or the start of the arguments list)
|
173
173
|
#
|
174
|
-
# This sort does the same thing in two phases; in the first phase, the command hasn't been identified, so
|
174
|
+
# This sort of does the same thing in two phases; in the first phase, the command hasn't been identified, so
|
175
175
|
# we are looking for global switches and flags, ending when we get the command.
|
176
176
|
#
|
177
177
|
# Once the command has been found, we start looking for command-specific flags and switches.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Copeland
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-19 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|