gruntjs / gruntjs/grunt

Improperly split arguments

Open
#1,444 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

The provided arguments in this call:

`grunt task:arg1:"arg2 with spaces":"arg3 : blah"`

Should be split out into `"arg1"`, `"arg2 with spaces"`, and `"arg3 : blah"`, but they will actually be split out into `"arg1"`, `"arg2 with spaces"`, `"arg3`, and `blah"` because of the colon inside of arg3

I realize this is a bit of an edge case, and I've only encountered it as a problem this one time.

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the argument-splitting logic for the `grunt task:...` syntax and reproduce the quoted argument containing a colon; done means the three intended arguments remain intact, including `arg3 : blah`.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.