We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bca6ab2 commit 9719ca6Copy full SHA for 9719ca6
README.md
@@ -42,6 +42,13 @@ args, err := p.Parse("./foo `echo $SHELL`")
42
// args should be ["./foo", "/bin/bash"]
43
```
44
45
+```go
46
+p := shellwords.NewParser()
47
+p.ParseComment = true
48
+args, err := p.Parse("./foo # comment")
49
+// args should be ["./foo"]
50
+```
51
+
52
# Thanks
53
54
This is based on cpan module [Parse::CommandLine](https://metacpan.org/pod/Parse::CommandLine).
0 commit comments