Closed homeworkprod closed 2 years ago
Nice, thanks :)
Got to say, this was a very good PR:
1/ Explain the rationale 2/ Clearly show the consequences of the changes 3/ Contain link to the relevant documentation
Not only was the project improved, but I also learned something new about clap
.
Thanks again, take care.
@dmerejkowsky Thank you for your kind words, and for ruplacer as well! Glad I could help a tiny bit.
I find it very helpful to have a tool tell me it's version so I can consider upgrading to a newer version or track down bugs.
This change adds the common
--version
option/switch (along with-V
). Fortunately, Clap makes this very easy by using a magic command attribute: https://github.com/clap-rs/clap/blob/v3.1.15/examples/derive_ref/README.md#command-attributesOutput of
ruplacer --version
:Additional output of
ruplacer --help
: