mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 21:05:11 +00:00
Run the list
command by default when no command is provided
This commit is contained in:
parent
e9dec32c90
commit
8889e26255
3
hosts
3
hosts
@ -401,7 +401,7 @@ _main() {
|
|||||||
|
|
||||||
# If $cmd is blank, then set to help
|
# If $cmd is blank, then set to help
|
||||||
if [[ -z $cmd ]]; then
|
if [[ -z $cmd ]]; then
|
||||||
cmd="help"
|
cmd="list"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load all of the commands.
|
# Load all of the commands.
|
||||||
@ -563,6 +563,7 @@ A program for managing host file entries.
|
|||||||
Version: $_VERSION
|
Version: $_VERSION
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
$_me
|
||||||
$_me add <ip> <hostname>
|
$_me add <ip> <hostname>
|
||||||
$_me remove <hostname>
|
$_me remove <hostname>
|
||||||
$_me list [127.]
|
$_me list [127.]
|
||||||
|
Loading…
Reference in New Issue
Block a user