function cleanTaskArg(arg) {
    return arg.pattern || arg.op || arg
}
Ensure the output of shell-quote's `parse()` is acceptable input to npm-cli.

The `parse()` method of shell-quote sometimes returns special objects in its
output array, e.g. if it thinks some elements should be globbed. But npm-cli
only accepts strings and will throw an error otherwise.

See https://github.com/substack/node-shell-quote#parsecmd-env

@param {object|string} arg - Item in the output of shell-quote's `parse()`.
@returns {string} A valid argument for npm-cli.