From 36064b41097d129432644c311de122ee2f64902c Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Mon, 29 Nov 2021 09:13:33 -0800 Subject: [PATCH] Minor edits --- functions/tide.fish | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/functions/tide.fish b/functions/tide.fish index 420bb4e..cd71669 100644 --- a/functions/tide.fish +++ b/functions/tide.fish @@ -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 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 _tide_help else if functions --query _tide_sub_$argv[1] - _tide_sub_$argv[1] $argv[2..-1] + _tide_sub_$argv[1] $argv[2..] else _tide_help return 1 @@ -14,14 +14,14 @@ function tide --description "Manage your Tide prompt" end function _tide_help - printf '%s\n' \ - 'Usage: tide [options] subcommand [options]' \ - '' \ - 'Options:' \ - ' -v or --version print tide version number' \ - ' -h or --help print this help message' \ - '' \ - 'Subcommands:' \ - ' configure run interactive configuration wizard' \ - ' bug-report print info for use in bug reports' + echo "\ +Usage: tide [options] subcommand [options] + +Options: + -v or --version print tide version number + -h or --help print this help message + +Subcommands: + configure run interactive configuration wizard + bug-report print info for use in bug reports" end