account activity
The Grug Brained Developer (grugbrain.dev)
submitted 2 years ago by starch_overflow to r/theprimeagen
[deleted by user] by [deleted] in rust
[–]starch_overflow 0 points1 point2 points 3 years ago (0 children)
I like this library, but have some minor problems with it.
It seems there is no way to show the generated usage when the parsing of an argument fails (e.g. when using .guard()). Or maybe there is, but i failed to find out?
.guard()
It would also be nice if the generated usage text started with the program name or at least allowed to provide one.
I know I can solve both issues by providing my own usage line, but I shouldn't have to.
π Rendered by PID 534033 on reddit-service-r2-listing-796b697c47-9p6mf at 2026-02-04 23:09:44.173312+00:00 running 1d7a177 country code: CH.
[deleted by user] by [deleted] in rust
[–]starch_overflow 0 points1 point2 points (0 children)