1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-11-25 22:27:42 +00:00

Run the list command by default when no command is provided

This commit is contained in:
William Melody 2015-03-18 17:13:25 -07:00
parent e9dec32c90
commit 8889e26255

3
hosts
View File

@ -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.]