Skip to content

Commit

Permalink
feat(cli): Add help text and more options
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeiger committed Oct 15, 2016
1 parent 3865a6c commit 9ff3dba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ const log = require('electron-log');
const kernelspecs = require('kernelspecs');

const argv = require('yargs')
.alias('k', 'kernel')
.version()
.usage('Usage: nteract <notebooks> [options]')
.example('nteract notebook1.ipynb notebook2.ipynb', 'Open notebooks')
.example('nteract --kernel javascript', 'Launch a kernel')
.describe('kernel', 'Launch a kernel')
.default('kernel', 'python3')
.alias('k', 'kernel')
.describe('verbose', 'Display debug information')
.help('help')
.argv;

log.info('args', argv);
Expand Down

0 comments on commit 9ff3dba

Please sign in to comment.