print out cli options on start
diff --git a/client/wskdb.js b/client/wskdb.js
index d46758e..fad435e 100644
--- a/client/wskdb.js
+++ b/client/wskdb.js
@@ -15,8 +15,11 @@
path: '/ws/client/register'
};
+var commandLineOptionsConfig = [
+ {name: 'use-cli-debugger', short: 'c', type: 'string', description: 'Favor the CLI for debug sessions over a GUI'}
+];
var commandLineOptions = argv
- .option([{name: 'use-cli-debugger', short: 'c', type: 'string', description: 'Favor the CLI for debug sessions over a GUI'}])
+ .option(commandLineOptionsConfig)
.run()
.options;
@@ -24,6 +27,12 @@
ws.on('open', function open() {
console.log('Welcome to the OpenWhisk Debugger'.red);
+
+ if (commandLineOptions) {
+ for (var x in commandLineOptions) {
+ console.log(' + ' + commandLineOptionsConfig.find((o) => o.name == x).description);
+ }
+ }
console.log();
var wskprops = propertiesParser.read(expandHomeDir('~/.wskprops'));