deno.land / x / yargs@v17.6.0-deno / test / fixtures / command-module.js

command-module.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* eslint-disable no-undef */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;};
yargs

Version Info

Tagged at
a year ago