mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 04:45:11 +00:00
Clarify usage information
This commit is contained in:
parent
f714965f0f
commit
fc60f3a0d7
@ -5,8 +5,8 @@ A program for managing host file entries.
|
||||
## Usage
|
||||
|
||||
Usage:
|
||||
hosts add ip hostname
|
||||
hosts remove hostname
|
||||
hosts add <ip> <hostname>
|
||||
hosts remove <hostname>
|
||||
hosts list [127.]
|
||||
|
||||
## Acknowledgements
|
||||
|
4
hosts
4
hosts
@ -632,7 +632,7 @@ commands() {
|
||||
# ------------------------------------------------------------------------- add
|
||||
|
||||
desc add <<EOM
|
||||
Usage: $_me add ip hostname
|
||||
Usage: $_me add <ip> <hostname>
|
||||
EOM
|
||||
add() {
|
||||
local ip=${1:-}
|
||||
@ -669,7 +669,7 @@ list() {
|
||||
# ---------------------------------------------------------------------- remove
|
||||
|
||||
desc remove <<EOM
|
||||
Usage: $_me remove host
|
||||
Usage: $_me remove <hostname>
|
||||
EOM
|
||||
remove() {
|
||||
local hostname=${1:-}
|
||||
|
Loading…
Reference in New Issue
Block a user