gli 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/gli.rdoc +1 -1
- data/lib/gli/commands/rdoc_document_listener.rb +2 -2
- data/lib/gli/version.rb +1 -1
- metadata +3 -3
data/gli.rdoc
CHANGED
@@ -60,8 +60,8 @@ module GLI
|
|
60
60
|
# Gives you a switch in the current context
|
61
61
|
def switch(name,aliases,desc,long_desc,negetable)
|
62
62
|
if negetable
|
63
|
-
name = "[no-]#{name}" if name.length > 1
|
64
|
-
aliases = aliases.map { |_| _.length > 1 ? "[no-]#{_}" : _ }
|
63
|
+
name = "[no-]#{name}" if name.to_s.length > 1
|
64
|
+
aliases = aliases.map { |_| _.to_s.length > 1 ? "[no-]#{_}" : _ }
|
65
65
|
end
|
66
66
|
invocations = ([name] + aliases).map { |_| add_dashes(_) }.join('|')
|
67
67
|
@io.puts "#{@nest}=== #{invocations}"
|
data/lib/gli/version.rb
CHANGED
metadata
CHANGED