mirror of
https://github.com/IlanCosman/tide.git
synced 2025-01-03 18:14:01 +03:00
Minor edits
This commit is contained in:
parent
fb8ece30ab
commit
36064b4109
@ -1,12 +1,12 @@
|
|||||||
function tide --description "Manage your Tide prompt"
|
function tide --description 'Manage your Tide prompt'
|
||||||
argparse --stop-nonopt v/version h/help -- $argv
|
argparse --stop-nonopt v/version h/help -- $argv
|
||||||
|
|
||||||
if set -q _flag_version
|
if set -q _flag_version
|
||||||
printf '%s\n' "tide, version 5.0.1"
|
echo 'tide, version 5.0.1'
|
||||||
else if set -q _flag_help
|
else if set -q _flag_help
|
||||||
_tide_help
|
_tide_help
|
||||||
else if functions --query _tide_sub_$argv[1]
|
else if functions --query _tide_sub_$argv[1]
|
||||||
_tide_sub_$argv[1] $argv[2..-1]
|
_tide_sub_$argv[1] $argv[2..]
|
||||||
else
|
else
|
||||||
_tide_help
|
_tide_help
|
||||||
return 1
|
return 1
|
||||||
@ -14,14 +14,14 @@ function tide --description "Manage your Tide prompt"
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _tide_help
|
function _tide_help
|
||||||
printf '%s\n' \
|
echo "\
|
||||||
'Usage: tide [options] subcommand [options]' \
|
Usage: tide [options] subcommand [options]
|
||||||
'' \
|
|
||||||
'Options:' \
|
Options:
|
||||||
' -v or --version print tide version number' \
|
-v or --version print tide version number
|
||||||
' -h or --help print this help message' \
|
-h or --help print this help message
|
||||||
'' \
|
|
||||||
'Subcommands:' \
|
Subcommands:
|
||||||
' configure run interactive configuration wizard' \
|
configure run interactive configuration wizard
|
||||||
' bug-report print info for use in bug reports'
|
bug-report print info for use in bug reports"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user