Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make help flags display .help from nomnom #83

Closed
Frijol opened this issue May 4, 2015 · 0 comments
Closed

Make help flags display .help from nomnom #83

Frijol opened this issue May 4, 2015 · 0 comments

Comments

@Frijol
Copy link
Member

Frijol commented May 4, 2015

Each command in tessel-2.js has a .help option, e.g.:

parser.command('push')
  .callback(function(opts) {
    // true: push=true
    controller.deployScript(opts, true)
      .catch(function (err) {
        if(err instanceof Error){
          throw err;
        }
        tessel.logs.warn(err);
        process.exit(1);
      });
  })
  .option('name', nameOption)
  .option('entryPoint', {
    position: 1,
    required: true,
    help: 'the entry point file to deploy to Tessel'
  })
  .option('verbose', {
    flag : true,
    abbr: 'v',
    help: 'choose to view more debugging information'
  })
  .help('Deploy a script to memory on Tessel and run it with Node whenever Tessel boots up.');

They're not really being used. When you call tessel push -h, it should print out Deploy a script to memory on Tessel and run it with Node whenever Tessel boots up.. But instead it just gives you the generic Usage: t2 <command>.

This should work on flags, too, e.g. tessel push -entryPoint -h should print the entry point file to deploy to Tessel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant