gli 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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