Skip to content

Commit 6036009

Browse files
committed
doc: make Cli.Cmd.validate doc more precise
1 parent 4a9b21e commit 6036009

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Cli/Basic.lean

+1-1
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ section IO
13331333
returns `0` for the exit code.
13341334
If neither of these flags were passed and processing was successful, the `run` handler of the
13351335
called command is executed.
1336-
In the case of a processing error, the error is printed and an exit code of `1` is returned.
1336+
In the case of a processing error, the error is printed to stderr and an exit code of `1` is returned.
13371337
-/
13381338
def validate (c : Cmd) (args : List String) : IO UInt32 := do
13391339
let result := c.process args

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Prints the help or the version of the called (sub)command if the respective flag
194194
returns `0` for the exit code.
195195
If neither of these flags were passed and processing was successful, the `run` handler of the
196196
called command is executed.
197-
In the case of a processing error, the error is printed and an exit code of `1` is returned.
197+
In the case of a processing error, the error is printed to stderr and an exit code of `1` is returned.
198198
-/
199199
def validate (c : Cmd) (args : List String) : IO UInt32 := do
200200
let result := c.process args

0 commit comments

Comments
 (0)