really basic option parsing

This commit is contained in:
Peter Cottle 2012-09-10 16:08:02 -07:00
parent 908b403c4b
commit 513315af3c
2 changed files with 32 additions and 10 deletions

View file

@ -69,6 +69,10 @@ var CommandLineHistoryView = Backbone.View.extend({
this.commandError, this
));
events.on('commandProcessWarn', _.bind(
this.commandWarn, this
));
events.on('commandResultPrint', _.bind(
this.commandResultPrint, this
));
@ -111,6 +115,18 @@ var CommandLineHistoryView = Backbone.View.extend({
);
},
commandWarn: function(msg) {
this.$('#commandDisplay').append(
_.template(
this.resultTemplate,
{
className: 'commandWarn',
result: msg
}
)
);
},
commandResultPrint: function(err) {
if (!err.msg.length) {
// blank lines