 
 
 class PreferCommandLineInterface
-  constructor: (@configurator) ->
+  constructor: (@identifier, @configurator) ->
     sourceText = chalk.white configurator.options.results.source
     winston.debug 'Using ' + sourceText
 


    for key in keys
      value = model[key]
      window.add key + '[' + typeof value + ']' + ' = ' + value.toString()

    window.key 'h', @back

    window.on 'select', @selected keys, model

    window.focus()
    screen.render()

  initialize: (@configuration) ->
    window.detach() while window = @windows.pop() if @windows?

    @stack = []
    @windows = []

    @render()

  @main: ->

    {argv} = yargs

    configurationFileName = _.first argv._
    winston.debug 'Loading ' + chalk.white configurationFileName

    prefer.load configurationFileName, (err, configurator) ->
      throw err if err?
      new PreferCommandLineInterface configurationFileName, configurator


module.exports.main = PreferCommandLineInterface.main
