mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 23:04:23 +00:00
docs: Point people to common panic practices
This commit is contained in:
parent
62eff1f8d3
commit
a77e12e030
1 changed files with 3 additions and 1 deletions
|
@ -86,4 +86,6 @@ There are a few goals of `clap` that I'd like to maintain throughout contributio
|
|||
- This is also true of generating help and usage information (although *slightly* less stringent, as the program is about to exit)
|
||||
* Try to be cognizant of memory usage
|
||||
- Once parsing is complete, the memory footprint of `clap` should be low since the main program is the star of the show
|
||||
* `panic!` on *developer* error, exit gracefully on *end-user* error
|
||||
* `panic!` on *developer* error
|
||||
(e.g. [apps](https://github.com/clap-rs/clap/blob/62eff1f8d3394cef819b4aa7b23a1032fc584f03/src/build/app/debug_asserts.rs) and [args](https://github.com/clap-rs/clap/blob/62eff1f8d3394cef819b4aa7b23a1032fc584f03/src/build/arg/debug_asserts.rs)),
|
||||
exit gracefully on *end-user* error
|
||||
|
|
Loading…
Reference in a new issue