Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
8dedf262
Unverified
Commit
8dedf262
authored
Aug 18, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(cli): print usage messages to stderr
parent
b85e1dd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cli.zsh
lib/cli.zsh
+5
-5
No files found.
lib/cli.zsh
View file @
8dedf262
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment