File: command-module.js

package info (click to toggle)
node-yargs 15.3.1%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,740 kB
  • sloc: javascript: 12,094; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
exports.command = 'blerg <foo>'

exports.describe = 'handle blerg things'

exports.builder = function (yargs) {
  return yargs
    .option('banana', {
      default: 'cool'
    })
    .option('batman', {
      default: 'sad'
    })
}

exports.handler = function (argv) {
  global.commandHandlerCalledWith = argv
}