Commit 04c03019 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Better wording for the short --help message.

Added example of usage.
parent f3f790f4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -293,11 +293,17 @@ module JsDuck
        end

        opts.on('-h', '--help[=full]',
          "Prints the short help message or the full help.", " ") do |v|
          "Short help or --help=full for all available options.", " ") do |v|
          if v == 'full'
            puts opts
          else
            puts opts.banner
            puts "For example:"
            puts
            puts "    jsduck --output output/dir  input-file.js some/input/dir"
            puts
            puts "The main options:"
            puts

            show_help = false
            main_opts = [