mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 04:45: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 [[ -z $cmd ]]; then
|
||||
cmd="help"
|
||||
cmd="list"
|
||||
fi
|
||||
|
||||
# Load all of the commands.
|
||||
@ -563,6 +563,7 @@ A program for managing host file entries.
|
||||
Version: $_VERSION
|
||||
|
||||
Usage:
|
||||
$_me
|
||||
$_me add <ip> <hostname>
|
||||
$_me remove <hostname>
|
||||
$_me list [127.]
|
||||
|
Loading…
Reference in New Issue
Block a user