From e1085f775ba647b44830daffff39769b25b8bf65 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 4 Mar 2016 13:56:44 -0800 Subject: allow dump of cli options to work with new gli gem. --- lib/leap_cli/markdown_document_listener.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: #{([name] + aliases).join('|')} #{@arg_name_formatter.format(arg_name,arg_options)}" @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 -- cgit v1.2.3