mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-25 22:27:42 +00:00
Quote command names passed as arguments to desc
This commit is contained in:
parent
d2b92aec5a
commit
8b0fc0fcfe
26
hosts
26
hosts
@ -492,7 +492,7 @@ _print_desc() {
|
|||||||
|
|
||||||
# Version #####################################################################
|
# Version #####################################################################
|
||||||
|
|
||||||
desc version <<EOM
|
desc "version" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME ( version | --version )
|
$_ME ( version | --version )
|
||||||
|
|
||||||
@ -507,7 +507,7 @@ version() {
|
|||||||
|
|
||||||
# Help ########################################################################
|
# Help ########################################################################
|
||||||
|
|
||||||
desc help <<EOM
|
desc "help" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME help [<command>]
|
$_ME help [<command>]
|
||||||
|
|
||||||
@ -559,7 +559,7 @@ EOM
|
|||||||
|
|
||||||
# Command List ################################################################
|
# Command List ################################################################
|
||||||
|
|
||||||
desc commands <<EOM
|
desc "commands" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME commands [--raw]
|
$_ME commands [--raw]
|
||||||
|
|
||||||
@ -608,7 +608,7 @@ commands() {
|
|||||||
|
|
||||||
# ------------------------------------------------------------------------- add
|
# ------------------------------------------------------------------------- add
|
||||||
|
|
||||||
desc add <<EOM
|
desc "add" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME add <ip> <hostname> [comment]
|
$_ME add <ip> <hostname> [comment]
|
||||||
|
|
||||||
@ -655,7 +655,7 @@ add() {
|
|||||||
|
|
||||||
# --------------------------------------------------------------------- disable
|
# --------------------------------------------------------------------- disable
|
||||||
|
|
||||||
desc disable <<EOM
|
desc "disable" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME disable ( <ip> | <hostname> | <search string> )
|
$_ME disable ( <ip> | <hostname> | <search string> )
|
||||||
|
|
||||||
@ -686,7 +686,7 @@ disable() {
|
|||||||
|
|
||||||
# -------------------------------------------------------------------- disabled
|
# -------------------------------------------------------------------- disabled
|
||||||
|
|
||||||
desc disabled <<EOM
|
desc "disabled" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME disabled
|
$_ME disabled
|
||||||
|
|
||||||
@ -699,7 +699,7 @@ disabled() {
|
|||||||
|
|
||||||
# ------------------------------------------------------------------------ edit
|
# ------------------------------------------------------------------------ edit
|
||||||
|
|
||||||
desc edit <<EOM
|
desc "edit" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME edit
|
$_ME edit
|
||||||
|
|
||||||
@ -718,7 +718,7 @@ edit() {
|
|||||||
|
|
||||||
# ---------------------------------------------------------------------- enable
|
# ---------------------------------------------------------------------- enable
|
||||||
|
|
||||||
desc enable <<EOM
|
desc "enable" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME enable ( <ip> | <hostname> | <search string> )
|
$_ME enable ( <ip> | <hostname> | <search string> )
|
||||||
|
|
||||||
@ -747,7 +747,7 @@ enable() {
|
|||||||
|
|
||||||
# --------------------------------------------------------------------- enabled
|
# --------------------------------------------------------------------- enabled
|
||||||
|
|
||||||
desc enabled <<EOM
|
desc "enabled" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME enabled
|
$_ME enabled
|
||||||
|
|
||||||
@ -760,7 +760,7 @@ enabled() {
|
|||||||
|
|
||||||
# ------------------------------------------------------------------------ file
|
# ------------------------------------------------------------------------ file
|
||||||
|
|
||||||
desc file <<EOM
|
desc "file" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME file
|
$_ME file
|
||||||
|
|
||||||
@ -773,7 +773,7 @@ file() {
|
|||||||
|
|
||||||
# ------------------------------------------------------------------------ list
|
# ------------------------------------------------------------------------ list
|
||||||
|
|
||||||
desc list <<EOM
|
desc "list" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME list [enabled | disabled | <search string>]
|
$_ME list [enabled | disabled | <search string>]
|
||||||
|
|
||||||
@ -810,7 +810,7 @@ list() {
|
|||||||
|
|
||||||
# ---------------------------------------------------------------------- remove
|
# ---------------------------------------------------------------------- remove
|
||||||
|
|
||||||
desc remove <<EOM
|
desc "remove" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME remove ( <ip> | <hostname> | <search string> ) [--force]
|
$_ME remove ( <ip> | <hostname> | <search string> ) [--force]
|
||||||
|
|
||||||
@ -865,7 +865,7 @@ remove() {
|
|||||||
|
|
||||||
# ------------------------------------------------------------------------ show
|
# ------------------------------------------------------------------------ show
|
||||||
|
|
||||||
desc show <<EOM
|
desc "show" <<EOM
|
||||||
Usage:
|
Usage:
|
||||||
$_ME show ( <ip> | <hostname> | <search string> )
|
$_ME show ( <ip> | <hostname> | <search string> )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user