This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
Merge pull request
#10
from walle/fail_to_stderr
Write usage message to stderr on error
Alex Flint
10 years ago
parent
a6c77a413a
935b2a1bd5
commit
a49bba8533
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
usage.go
+ 2
- 2
usage.go
View File
@ -9,9 +9,9 @@ import (
"strings"
)
// Fail prints usage information to std
out
and exits with non-zero status
// Fail prints usage information to std
err
and exits with non-zero status
func
(
p
*
Parser
)
Fail
(
msg
string
)
{
p
.
WriteUsage
(
os
.
Std
out
)
p
.
WriteUsage
(
os
.
Std
err
)
fmt
.
Println
(
"error:"
,
msg
)
os
.
Exit
(
-
1
)
}
Write
Preview
Loading…
Cancel
Save