orhun / rustypaste-cli

A CLI tool for rustypaste
https://github.com/orhun/rustypaste
MIT License
56 stars 8 forks source link

style(cli): remove extra newline from version output #36

Closed tessus closed 1 year ago

tessus commented 1 year ago

Due to https://github.com/orhun/rustypaste/pull/97 the -V argument now prints an extra newline.

This PR removes the extra newline character.

Before

[tessus@epsilon3 0 ~/data/tmp/rptest]$ rpaste -s https://rptest.local/paste -V -a token
rustypaste-server 0.11.1

[tessus@epsilon3 0 ~/data/tmp/rptest]$

After

This is how it looked before https://github.com/orhun/rustypaste/pull/97

[tessus@epsilon3 0 ~/data/tmp/rptest]$ rpaste -s https://rptest.local/paste -V -a token
rustypaste-server 0.11.1
[tessus@epsilon3 0 ~/data/tmp/rptest]$