misc

Misc scripts and tools
git clone git://git.alexwennerberg.com/misc
Log | Files | Refs | README | LICENSE

commit fe9679fdf12df2c303aa0093b54ed053decb6b52
parent ce52cb4daefcf5c4a95c9540e1b7684f6d271512
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu, 18 Nov 2021 21:49:22 -0800

Clarify language

Diffstat:
Mfinger.rs | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/finger.rs b/finger.rs @@ -1,7 +1,7 @@ // A simple finger client written in Rust implementing rfc1288. Zero dependencies outside std. Compiles with rustc: // rustc finger.rs -o finger // Usage: -// finger user@domain +// finger request@host // e.g. // finger aw@happynetbox.com @@ -22,7 +22,7 @@ use std::process; // supports standard finger queries and URIs // From the drat spec: // https://datatracker.ietf.org/doc/html/draft-ietf-uri-url-finger-02 -// returns host, user +// returns host, request fn get_params(query: &str) -> (&str, &str) { // is URI if query.starts_with("finger://") { @@ -51,7 +51,7 @@ fn get_params(query: &str) -> (&str, &str) { fn main() -> std::io::Result<()> { let args: Vec<String> = env::args().collect(); if args.len() < 2 { - println!("Usage: finger [user]@host or finger://host/user"); + println!("Usage: finger [request]@host or finger://host/request"); process::exit(1); }