Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Target //:robots_main up-to-date:
bazel-bin/robots_main
...
bazel-robots$ bazel run robots_main -- ~/local/path/to/robots.txt YourBot https://example.com/url
user-agent 'YourBot' with url 'https://example.com/url' allowed: YES
user-agent 'YourBot' with URI 'https://example.com/url': ALLOWED
```

#### Building with CMake
Expand Down Expand Up @@ -104,8 +104,15 @@ Test project robotstxt/c-build
Total Test time (real) = 0.02 sec
...
$ robots ~/local/path/to/robots.txt YourBot https://example.com/url
user-agent 'YourBot' with url 'https://example.com/url' allowed: YES
user-agent 'YourBot' with URI 'https://example.com/url': ALLOWED
```
> **Note**: If the robots file is empty, the parser also prints:
>
> ```
> notice: robots file is empty so all user-agents are allowed
> ```

> **Exit codes:** `0` = ALLOWED, `1` = DISALLOWED

## Notes

Expand Down