Outline the recommended way of using Unused

This commit is contained in:
Joshua Clayton 2016-05-12 06:37:44 -04:00
parent 731381a0f8
commit 7d2caa3f2d

View File

@ -67,13 +67,7 @@ your `$PATH`.
`unused` reads from a pipe expecting a series of tokens to search the codebase
for.
This could be done with `echo`:
```sh
echo "module\nimport" | unused
```
Or pulling in a ctags file:
The recommended way to do this is to clean up your tags file and pipe it in:
```sh
cat .git/tags | cut -f1 | sort -u | unused