Skip to content

Commit d46afd8

Browse files
committed
flag usage the latest
1 parent f8a4a7f commit d46afd8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ tracer API:
108108
The err2 package supports Go's flags. All you need to do is to call [flag.Parse].
109109
And the following flags are supported (="default-value"):
110110
111-
-err2-log="nil"
112-
A name of the stream currently supported stderr, stdout or nil
113-
-err2-panic-trace="stderr"
114-
A name of the stream currently supported stderr, stdout or nil
111+
-err2-log stream
112+
stream for logging: nil -> log pkg
113+
-err2-panic-trace stream
114+
stream for panic tracing (default stderr)
115115
-err2-ret-trace stream
116-
stream for error return tracing: stderr, stdout
117-
-err2-trace="nil"
118-
A name of the stream currently supported stderr, stdout or nil
116+
stream for error return tracing: stderr, stdout
117+
-err2-trace stream
118+
stream for error tracing: stderr, stdout
119119
120120
Note that you have called [SetErrorTracer] and others, before you call
121121
[flag.Parse]. This allows you set the defaults according your app's need and allow

0 commit comments

Comments
 (0)