Skip to content

Commit 288dac0

Browse files
committed
Add note for selecting from dirs that begin with hypen
Closes #26.
1 parent 96c321a commit 288dac0

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,21 @@ $ fsql FROM ...
8787

8888
Each source should be a relative or absolute path to some directory on your machine. You can also use environment variables (e.g. `$GOPATH`) or `~` (for your home directory).
8989

90-
Use `-` to exclude a directory. For example, to exclude `.git`: `"... FROM ., -.git/ ..."`.
90+
Use a hypen (`-`) to exclude a directory. For example, to exclude `.git`:
91+
92+
```sh
93+
$ fsql ... FROM ., -.git ...
94+
```
95+
96+
If the directory begins with a hypen (e.g. `-foo`), use one of the following to select from it:
97+
98+
```sh
99+
$ fsql ... FROM ./-foo ...
100+
```
101+
102+
```sh
103+
$ fsql "... FROM '-foo' ..."
104+
```
91105

92106
##### Examples
93107

0 commit comments

Comments
 (0)