From 235be1f15151199d4eaaecaee1f7dd0a9eae1d19 Mon Sep 17 00:00:00 2001 From: William Melody Date: Mon, 16 Mar 2015 19:53:50 -0700 Subject: [PATCH] Expand per-command usage info. Including descriptions of each command, since the functionality might not always be immediately obvious. --- hosts | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/hosts b/hosts index bb37d96..8926e15 100755 --- a/hosts +++ b/hosts @@ -637,7 +637,11 @@ commands() { # ------------------------------------------------------------------------- add desc add < +Usage: + $_me add + +Description: + Add a given IP address and hostname pair. EOM add() { local ip=${1:-} @@ -659,7 +663,12 @@ add() { # ------------------------------------------------------------------------ list desc list < +Usage: + $_me remove + +Description: + Remove all IP / hostname pairs for a given hostname. EOM remove() { local hostname=${1:-}