From 03c56e96123945fcc4101f1018f2eca51e49cff6 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 31 Dec 2015 22:58:41 +0300 Subject: [PATCH] minor cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/cli.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui (gen4)/features/cli.js b/ui (gen4)/features/cli.js index a650baa2..02c1fbbf 100755 --- a/ui (gen4)/features/cli.js +++ b/ui (gen4)/features/cli.js @@ -36,6 +36,7 @@ module.CLI = core.ImageGridFeatures.Feature({ handlers: [ ['start', function(){ + // get the arguments... if(this.runtime == 'nw'){ var argv = requirejs('nw.gui').App.argv @@ -50,6 +51,7 @@ module.CLI = core.ImageGridFeatures.Feature({ var cli = requirejs('commander') cli + // XXX get the version from config... .version('0.0.1') //.usage('[command] [options] ..') @@ -68,13 +70,18 @@ module.CLI = core.ImageGridFeatures.Feature({ // list features... // XXX make this a core action... (???) if(cli.listFeatures){ + // excluded... this.features.excluded.length > 0 && console.warn('Features excluded (%d):\n ', this.features.excluded.length, this.features.excluded.join('\n ')) + + // not applicable... console.log('Features not applicable (%d):\n ', this.features.unapplicable.length, this.features.unapplicable.join('\n ')) + + // loaded... console.log('Features loaded (%d):\n ', this.features.features.length, this.features.features.join('\n '))