Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikP committed Mar 6, 2018
1 parent 58c85e5 commit 813edf2
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,28 @@ optional arguments:
--version show program's version number and exit
```

### Example
### Examples

Show version:

```
$ querycontacts --version
querycontacts 1.0.0
```

Show abuse contact for your IP:

```
$ IP=$(curl ipecho.net/plain)
$ querycontacts $IP
abuse@yourisp.example.com
```

Error when no abuse contact was found:

```
querycontacts 127.0.0.1
$ querycontacts 127.0.0.1
querycontacts: error: no contacts for 127.0.0.1
```

## Library usage
Expand Down

0 comments on commit 813edf2

Please sign in to comment.