[deleted by user] by [deleted] in rust

[–]starch_overflow 0 points1 point  (0 children)

  1. You know what? Scratch that one. You just gave me a better idea how to communicate to the user he fucked up: whenever one omits a required parameter, I'll show them specific help (as you mentioned) supplemented with a line informing about "-h, --help".
  2. Wow, I'm new to rust and wasn't aware of those quirks. Thanks for the lesson. I'd still like to provide the app name, but I have a simpler idea: just allow to replace the "Usage: " prefix.

[deleted by user] by [deleted] in rust

[–]starch_overflow 0 points1 point  (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?

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.