Skip to content

Commit

Permalink
Only output version if no tasks were specified
Browse files Browse the repository at this point in the history
  • Loading branch information
dnrce committed Jul 4, 2014
1 parent 163c310 commit dc6b0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gulp.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ cli.launch({

// the actual logic
function handleArguments(env) {
if (versionFlag) {
if (versionFlag && tasks.length === 0) {
gutil.log('CLI version', cliPackage.version);
if (env.modulePackage) {
gutil.log('Local version', env.modulePackage.version);
Expand Down

0 comments on commit dc6b0a6

Please sign in to comment.