(command, args, options)
| 1396 | return parsed; |
| 1397 | } |
| 1398 | function parse(command, args, options) { |
| 1399 | if (args && !Array.isArray(args)) { |
| 1400 | options = args; |
| 1401 | args = null; |
| 1402 | } |
| 1403 | args = args ? args.slice(0) : []; |
| 1404 | options = Object.assign({}, options); |
| 1405 | const parsed = { |
| 1406 | command, |
| 1407 | args, |
| 1408 | options, |
| 1409 | file: void 0, |
| 1410 | original: { |
| 1411 | command, |
| 1412 | args |
| 1413 | } |
| 1414 | }; |
| 1415 | return options.shell ? parsed : parseNonShell(parsed); |
| 1416 | } |
| 1417 | module2.exports = parse; |
| 1418 | } |
| 1419 | }); |
no test coverage detected
searching dependent graphs…