                           content: content
                           title: @args.title
                           navigation: @navigation
-                          version: @version
+                          version: @packageInfo.version
     fs.writeFileSync(filePath, doc)
 
   renderFile: (file) ->

        default: false
        describe: 'Dump metadata to a file or api.json if no filename given'
      .options 'title',
        default: path.basename process.cwd()
        describe: 'Title of index page'
      .help('help').alias('help', '?')
      .version("v#{@version}")
      .parse(argv)

  # Public: Executes the program.

class Cli
  # Public: Parses the command-line arguments.
  constructor: ->
    @packageInfo = require('../package')

  # Public: Parses the command-line arguments.
  parseArguments: (argv = process.argv) ->
