       @handleError(err)
       return false
 
-    if @run_options.cmd? or @run_options.cmd is ''
+    if not @run_options.cmd? or @run_options.cmd is ''
       # Precondition: lang? and lang of grammarMap
-      info.command = grammarMap[lang].command
+      commandContext.command = grammarMap[lang].command
     else
-      info.command = @run_options.cmd
+      commandContext.command = @run_options.cmd
 
     filename = editor.getTitle()
 

    return lang

  setup: (editor) ->
    # Info object
    info = {}

    # Get language
    lang = @getlang(editor)

    # Update header
    @headerView.title.text(lang + " - " + filename)
    # Return setup information
    return commandContext

  handleError: (err) ->
    # Display error and kill process
