Skip to content

Commit 5e164b6

Browse files
timdeschryverphated
authored andcommitted
Upgrade: Update yargs dependency (closes #127)
1 parent 1de3603 commit 5e164b6

File tree

3 files changed

+33
-19
lines changed

3 files changed

+33
-19
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function handleArguments(env) {
107107
toConsole(log, opts);
108108

109109
if (opts.help) {
110-
console.log(parser.help());
110+
parser.showHelp(console.log);
111111
exit(0);
112112
}
113113

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"tildify": "^1.0.0",
4949
"v8flags": "^2.0.9",
5050
"wreck": "^6.3.0",
51-
"yargs": "^3.28.0"
51+
"yargs": "^7.1.0"
5252
},
5353
"devDependencies": {
5454
"babel-preset-es2015": "^6.5.0",

test/expected/flags-help.txt

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,35 @@
22
Usage: gulp [options] tasks
33

44
Options:
5-
--help, -h Show this help. [boolean]
6-
--version, -v Print the global and local gulp versions. [boolean]
7-
--require Will require a module before running the gulpfile. This is useful for transpilers but also has other applications. [string]
8-
--gulpfile, -f Manually set path of gulpfile. Useful if you have multiple gulpfiles. This will set the CWD to the gulpfile directory as well. [string]
9-
--cwd Manually set the CWD. The search for the gulpfile, as well as the relativity of all requires will be from here. [string]
10-
--verify Will verify plugins referenced in project's package.json against the plugins blacklist.
11-
--tasks, -T Print the task dependency tree for the loaded gulpfile. [boolean]
12-
--tasks-simple Print a plaintext list of tasks for the loaded gulpfile. [boolean]
13-
--tasks-json Print the task dependency tree, in JSON format, for the loaded gulpfile.
14-
--tasks-depth, --depth Specify the depth of the task dependency tree.
15-
--compact-tasks Reduce the output of task dependency tree by printing only top tasks and their child tasks. [boolean]
16-
--sort-tasks Will sort top tasks of task dependency tree. [boolean]
17-
--color Will force gulp and gulp plugins to display colors, even when no color support is detected. [boolean]
18-
--no-color Will force gulp and gulp plugins to not display colors, even when color support is detected. [boolean]
19-
--silent, -S Suppress all gulp logging. [boolean]
20-
--continue Continue execution of tasks upon failure. [boolean]
21-
--log-level, -L Set the loglevel. -L for least verbose and -LLLL for most verbose. -LLL is default. [count]
5+
--help, -h Show this help. [boolean]
6+
--version, -v Print the global and local gulp versions. [boolean]
7+
--require Will require a module before running the gulpfile.
8+
This is useful for transpilers but also has other
9+
applications. [string]
10+
--gulpfile, -f Manually set path of gulpfile. Useful if you have
11+
multiple gulpfiles. This will set the CWD to the
12+
gulpfile directory as well. [string]
13+
--cwd Manually set the CWD. The search for the gulpfile, as
14+
well as the relativity of all requires will be from
15+
here. [string]
16+
--verify Will verify plugins referenced in project's
17+
package.json against the plugins blacklist.
18+
--tasks, -T Print the task dependency tree for the loaded
19+
gulpfile. [boolean]
20+
--tasks-simple Print a plaintext list of tasks for the loaded
21+
gulpfile. [boolean]
22+
--tasks-json Print the task dependency tree, in JSON format, for
23+
the loaded gulpfile.
24+
--tasks-depth, --depth Specify the depth of the task dependency tree.[number]
25+
--compact-tasks Reduce the output of task dependency tree by printing
26+
only top tasks and their child tasks. [boolean]
27+
--sort-tasks Will sort top tasks of task dependency tree. [boolean]
28+
--color Will force gulp and gulp plugins to display colors,
29+
even when no color support is detected. [boolean]
30+
--no-color Will force gulp and gulp plugins to not display
31+
colors, even when color support is detected. [boolean]
32+
--silent, -S Suppress all gulp logging. [boolean]
33+
--continue Continue execution of tasks upon failure. [boolean]
34+
--log-level, -L Set the loglevel. -L for least verbose and -LLLL for
35+
most verbose. -LLL is default. [count]
2236

0 commit comments

Comments
 (0)