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
1 changed files with 2 additions and 1 deletions

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