summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-03-04 13:56:44 -0800
committerelijah <elijah@riseup.net>2016-03-17 14:15:50 -0700
commite1085f775ba647b44830daffff39769b25b8bf65 (patch)
tree65f0d0c3d151e3e2ccdae33604197c9b97013bd2 /lib
parent17c97b8827ba36ba2ef3de3d1dbed1a5cfbb075f (diff)
allow dump of cli options to work with new gli gem.
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/markdown_document_listener.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/leap_cli/markdown_document_listener.rb b/lib/leap_cli/markdown_document_listener.rb
index c25a243..df422f4 100644
--- a/lib/leap_cli/markdown_document_listener.rb
+++ b/lib/leap_cli/markdown_document_listener.rb
@@ -29,6 +29,8 @@ module LeapCli
# Gives you the program description
def program_desc(desc)
@io.puts "@title = 'Command Line Reference'"
+ @io.puts "@summary = 'A copy of leap --help'"
+
#@io.puts "# #{File.basename($0)} - #{desc}"
@io.puts
end
@@ -98,7 +100,7 @@ module LeapCli
@commands.push(name)
#@io.puts "#{@nest}## Command: <tt>#{([name] + aliases).join('|')} #{@arg_name_formatter.format(arg_name,arg_options)}</tt>"
@io.puts
- @io.puts "#{@nest}# #{@commands.join ' '} #{@arg_name_formatter.format(arg_name,arg_options)}"
+ @io.puts "#{@nest}# #{@commands.join ' '} #{@arg_name_formatter.format(arg_name, arg_options, [])}"
@io.puts
@io.puts String(desc).strip
@io.puts