Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rufflabs authored Dec 29, 2022
1 parent 1b21f6c commit b80ed00
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,18 @@ This is a Python script that adds and removes entries to your `hosts` file. It w

I was tired of manually adding entries and never cleaning them up, so I created `hosts.py` to help manage that for me.

## Usage
```
hosts.py <command> [parameters]
Commands:
add <ip> <hostname> - Add an IP and corrosponding hostname to the hosts file
del <ip | hostname> - Deletes the specified IP or hostname from the hosts file
clear - Clears out all ips/hostnames that were added by this utility
Examples:
hosts.py add 10.10.10.10 myhost.local
hosts.py del 10.10.10.10
hosts.py del myhost.local
hosts.py clear
```

0 comments on commit b80ed00

Please sign in to comment.