Print descriptive messages for several switches

* Print messages for terminating switches like --list, --stop,
  --fix-unmanaged and --daemon
* Minor change in help string
This commit is contained in:
Karthik K
2015-05-06 22:38:40 +05:30
parent 3f08801967
commit 3ca3663894
2 changed files with 8 additions and 2 deletions

View File

@ -111,7 +111,8 @@ _create_ap() {
# No Options
;;
--stop)
opts=$("$1" --list)
local stop_awk_cmd='$1 ~ /^[0-9]+$/'
opts=$("$1" --list | awk "$stop_awk_cmd")
;;
--list)
# No Options