[#84] Beautify -h (4×' ', 15×opt, desc)

This commit is contained in:
Ivan Tham 2016-02-25 21:40:12 +08:00
parent 600ca453a9
commit 533dc85374
6 changed files with 32 additions and 42 deletions

View file

@ -29,16 +29,12 @@ function fisher_help -d "Show Help"
set option usage
set value $value $2
case help
set option help
case h
printf "Usage: fisher help [<keyword>] [--all] [--guides] [--help]\n\n"
printf " -a --all List available documentation\n"
printf " -g --guides List available guides\n"
printf " -a --all List available documentation\n"
printf " -g --guides List available guides\n"
printf " -h --help Show usage help\n"
printf " --usage[=<cmd>] Display command usage\n"
printf " -h --help Show usage help\n"
return
case \*
@ -53,9 +49,6 @@ function fisher_help -d "Show Help"
end
switch "$option"
case help
man fisher-help
case man
set -l value (printf "%s\n" $value | awk '{ print tolower($0) }')

View file

@ -18,10 +18,9 @@ function fisher_install -d "Install Plugins"
case h
printf "Usage: fisher install [<plugins>] [--force] [--quiet] [--help]\n\n"
printf " -f --force Reinstall given plugin/s\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
printf " -f --force Reinstall given plugin/s\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
return
case \*

View file

@ -62,12 +62,11 @@ function fisher_search -d "Search Plugins"
case h
printf "Usage: fisher search [<plugins>] [--and|--or] [--quiet] [--help]\n\n"
printf " *--<field> Filter by url, name, info, author or tags\n"
printf " -o --or Join query with OR operator\n"
printf " -a --and Join query with AND operator\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
printf " --<field> x Filter by url, name, info, author or tags\n"
printf " -a --and Join query with AND operator\n"
printf " -o --or Join query with OR operator\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
return
case \*

View file

@ -18,10 +18,9 @@ function fisher_uninstall -d "Uninstall Plugins"
case h
printf "Usage: fisher uninstall [<plugins>] [--force] [--quiet] [--help]\n\n"
printf " -f --force Delete copy from cache\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
printf " -f --force Delete copy from cache\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
return
case \*

View file

@ -19,8 +19,8 @@ function fisher_update -d "Update Plugins/Fisherman"
case h
printf "Usage: fisher update [<plugins>] [--quiet] [--help]\n\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
printf " -q --quiet Enable quiet mode\n"
printf " -h --help Show usage help\n"
return
case \*

View file

@ -1,27 +1,27 @@
Usage: fisher update [<plugins>] [--quiet] [--help]
-q --quiet Enable quiet mode
-h --help Show usage help
-q --quiet Enable quiet mode
-h --help Show usage help
Usage: fisher uninstall [<plugins>] [--force] [--quiet] [--help]
-f --force Delete copy from cache
-q --quiet Enable quiet mode
-h --help Show usage help
-f --force Delete copy from cache
-q --quiet Enable quiet mode
-h --help Show usage help
Usage: fisher search [<plugins>] [--and|--or] [--quiet] [--help]
*--<field> Filter by url, name, info, author or tags
-o --or Join query with OR operator
-a --and Join query with AND operator
-q --quiet Enable quiet mode
-h --help Show usage help
--<field> x Filter by url, name, info, author or tags
-a --and Join query with AND operator
-o --or Join query with OR operator
-q --quiet Enable quiet mode
-h --help Show usage help
Usage: fisher install [<plugins>] [--force] [--quiet] [--help]
-f --force Reinstall given plugin/s
-q --quiet Enable quiet mode
-h --help Show usage help
-f --force Reinstall given plugin/s
-q --quiet Enable quiet mode
-h --help Show usage help
Usage: fisher help [<keyword>] [--all] [--guides] [--help]
-a --all List available documentation
-g --guides List available guides
-a --all List available documentation
-g --guides List available guides
-h --help Show usage help
--usage[=<cmd>] Display command usage
-h --help Show usage help