summaryrefslogtreecommitdiff
path: root/lib/cli.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-08-18 12:50:22 +0200
committerMarc Cornellà <hello@mcornella.com>2021-08-18 12:50:22 +0200
commit8dedf26294d4236ffe84260d30d686a705b0d2ca (patch)
tree427250861fba06c90c081c419eaae64883441850 /lib/cli.zsh
parentb85e1dd5d6b0ee527b313ce8c902bbc4e34e36e0 (diff)
downloadzsh-8dedf26294d4236ffe84260d30d686a705b0d2ca.tar.gz
zsh-8dedf26294d4236ffe84260d30d686a705b0d2ca.tar.bz2
zsh-8dedf26294d4236ffe84260d30d686a705b0d2ca.zip
style(cli): print usage messages to stderr
Diffstat (limited to 'lib/cli.zsh')
-rw-r--r--lib/cli.zsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index 6bdac6cf1..b49643339 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -150,7 +150,7 @@ function _omz::log {
## User-facing commands
function _omz::help {
- cat <<EOF
+ cat >&2 <<EOF
Usage: omz <command> [options]
Available commands:
@@ -171,7 +171,7 @@ function _omz::changelog {
if ! command git -C "$ZSH" show-ref --verify refs/heads/$version &>/dev/null && \
! command git -C "$ZSH" show-ref --verify refs/tags/$version &>/dev/null && \
! command git -C "$ZSH" rev-parse --verify "${version}^{commit}" &>/dev/null; then
- cat <<EOF
+ cat >&2 <<EOF
Usage: omz changelog [version]
NOTE: <version> must be a valid branch, tag or commit.
@@ -184,7 +184,7 @@ EOF
function _omz::plugin {
(( $# > 0 && $+functions[_omz::plugin::$1] )) || {
- cat <<EOF
+ cat >&2 <<EOF
Usage: omz plugin <command> [options]
Available commands:
@@ -468,7 +468,7 @@ function _omz::plugin::load {
function _omz::pr {
(( $# > 0 && $+functions[_omz::pr::$1] )) || {
- cat <<EOF
+ cat >&2 <<EOF
Usage: omz pr <command> [options]
Available commands:
@@ -600,7 +600,7 @@ function _omz::pr::test {
function _omz::theme {
(( $# > 0 && $+functions[_omz::theme::$1] )) || {
- cat <<EOF
+ cat >&2 <<EOF
Usage: omz theme <command> [options]
Available commands: