|
1 | 1 | 'use strict'; |
2 | 2 |
|
| 3 | +var chalk = require('chalk'); |
| 4 | + |
3 | 5 | module.exports = { |
| 6 | + help: { |
| 7 | + alias: 'h', |
| 8 | + type: 'boolean', |
| 9 | + desc: chalk.grey( |
| 10 | + 'Show this help.'), |
| 11 | + }, |
4 | 12 | version: { |
5 | | - abbr: 'v', |
6 | | - flag: true, |
7 | | - help: 'Print the global and local gulp versions.', |
| 13 | + alias: 'v', |
| 14 | + type: 'boolean', |
| 15 | + desc: chalk.gray( |
| 16 | + 'Print the global and local gulp versions.'), |
8 | 17 | }, |
9 | 18 | require: { |
10 | | - list: true, |
11 | | - metavar: '<module path>', |
12 | | - help: |
| 19 | + type: 'string', |
| 20 | + requiresArg: true, |
| 21 | + desc: chalk.gray( |
13 | 22 | 'Will require a module before running the gulpfile. ' + |
14 | | - 'This is useful for transpilers but also has other applications.', |
| 23 | + 'This is useful for transpilers but also has other applications.'), |
15 | 24 | }, |
16 | 25 | gulpfile: { |
17 | | - metavar: '<gulpfile path>', |
18 | | - help: |
| 26 | + type: 'string', |
| 27 | + requiresArg: true, |
| 28 | + desc: chalk.gray( |
19 | 29 | 'Manually set path of gulpfile. Useful if you have multiple gulpfiles. ' + |
20 | | - 'This will set the CWD to the gulpfile directory as well.', |
| 30 | + 'This will set the CWD to the gulpfile directory as well.'), |
21 | 31 | }, |
22 | 32 | cwd: { |
23 | | - metavar: '<dir path>', |
24 | | - help: |
| 33 | + type: 'string', |
| 34 | + requiresArg: true, |
| 35 | + desc: chalk.gray( |
25 | 36 | 'Manually set the CWD. The search for the gulpfile, ' + |
26 | | - 'as well as the relativity of all requires will be from here.', |
| 37 | + 'as well as the relativity of all requires will be from here.'), |
27 | 38 | }, |
28 | 39 | verify: { |
29 | | - metavar: '<package.json path>', |
30 | | - flag: true, |
31 | | - help: |
| 40 | + desc: chalk.gray( |
32 | 41 | 'Will verify plugins referenced in project\'s package.json against ' + |
33 | | - 'the plugins blacklist.', |
| 42 | + 'the plugins blacklist.'), |
34 | 43 | }, |
35 | 44 | tasks: { |
36 | | - full: 'tasks', |
37 | | - abbr: 'T', |
38 | | - flag: true, |
39 | | - help: 'Print the task dependency tree for the loaded gulpfile.', |
| 45 | + alias: 'T', |
| 46 | + type: 'boolean', |
| 47 | + desc: chalk.gray( |
| 48 | + 'Print the task dependency tree for the loaded gulpfile.'), |
40 | 49 | }, |
41 | | - tasksSimple: { |
42 | | - full: 'tasks-simple', |
43 | | - flag: true, |
44 | | - help: 'Print a plaintext list of tasks for the loaded gulpfile.', |
| 50 | + 'tasks-simple': { |
| 51 | + type: 'boolean', |
| 52 | + desc: chalk.gray( |
| 53 | + 'Print a plaintext list of tasks for the loaded gulpfile.'), |
45 | 54 | }, |
46 | | - tasksJson: { |
47 | | - full: 'tasks-json', |
48 | | - flag: true, |
49 | | - help: |
| 55 | + 'tasks-json': { |
| 56 | + type: 'boolean', |
| 57 | + desc: chalk.gray( |
50 | 58 | 'Print the task dependency tree, ' + |
51 | | - 'in JSON format, for the loaded gulpfile.', |
| 59 | + 'in JSON format, for the loaded gulpfile.'), |
52 | 60 | }, |
53 | 61 | color: { |
54 | | - flag: true, |
55 | | - help: |
| 62 | + type: 'boolean', |
| 63 | + desc: chalk.gray( |
56 | 64 | 'Will force gulp and gulp plugins to display colors, ' + |
57 | | - 'even when no color support is detected.', |
| 65 | + 'even when no color support is detected.'), |
58 | 66 | }, |
59 | | - noColor: { |
60 | | - full: 'no-color', |
61 | | - flag: true, |
62 | | - help: |
| 67 | + 'no-color': { |
| 68 | + type: 'boolean', |
| 69 | + desc: chalk.gray( |
63 | 70 | 'Will force gulp and gulp plugins to not display colors, ' + |
64 | | - 'even when color support is detected.', |
| 71 | + 'even when color support is detected.'), |
65 | 72 | }, |
66 | 73 | silent: { |
67 | | - flag: true, |
68 | | - help: 'Suppress all gulp logging.', |
| 74 | + type: 'boolean', |
| 75 | + desc: chalk.gray( |
| 76 | + 'Suppress all gulp logging.'), |
69 | 77 | }, |
70 | 78 | }; |
0 commit comments