Skip to content

Feature request: provide a way to skip option parsing #778

@nfischer

Description

@nfischer

Commands like grep() provide option parsing, which is awesome. But it would be great if I could tell shelljs when to not do option parsing.

In the shell, sometimes I want to actually grep for -v in a file, instead of using it as an option.

In the shell:

$ grep -- -v file.txt

Proposed shelljs feature:

shell.grep('--', '-v', 'file.txt');

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions