-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adds subcommand (hardcoded to watch, but should also add serve and compile) - multichar cli arguments require double dash --
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,11 +147,15 @@ exports.init = function (grunt) { | |
|
||
// build the array of arguments to build the wt command | ||
exports.buildArgsArray = function (options, files) { | ||
var args = []; | ||
var args = ['watch']; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
drewwells
Author
Member
|
||
|
||
for (var key in options) { | ||
if (options.key != "") { | ||
args.push("-"+key); | ||
if (key.length>1) { | ||
args.push("--"+key); | ||
} else { | ||
args.push("-"+key); | ||
} | ||
// Special parser for Go booleans | ||
if (options[key] != "") { | ||
args.push(options[key]); | ||
|
What are the consequences of having a hardcoded argument in here? Kinda seems like it ought to be "compile" if anything.