From 8920362d490a0279de0bb5fe30ce11a8b1c50834 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 23 Apr 2026 15:37:48 +0900 Subject: [PATCH] Fix `--help` description for all binaries --- src/bin/finger.rs | 6 +----- src/bin/rup.rs | 6 +----- src/bin/ruptime.rs | 6 +----- src/bin/rusers.rs | 6 +----- src/bin/rwall.rs | 6 +----- src/bin/rwho.rs | 6 +----- 6 files changed, 6 insertions(+), 30 deletions(-) diff --git a/src/bin/finger.rs b/src/bin/finger.rs index 57db795..552e469 100644 --- a/src/bin/finger.rs +++ b/src/bin/finger.rs @@ -22,11 +22,7 @@ use roowho2_lib::server::varlink_api::VarlinkFingerClientProxy; /// If standard output is a socket, finger will emit a carriage return (^M) before every linefeed (^J). /// This is for processing remote finger requests when invoked by the daemon. #[derive(Debug, Parser)] -#[command( - author = "Programvareverkstedet ", - about, - version -)] +#[command(author = "Programvareverkstedet ", version)] pub struct Args { /// Forces finger to use IPv4 addresses only. #[arg(long, short = '4', conflicts_with = "ipv6")] diff --git a/src/bin/rup.rs b/src/bin/rup.rs index bab550d..b6967a9 100644 --- a/src/bin/rup.rs +++ b/src/bin/rup.rs @@ -6,11 +6,7 @@ use clap::Parser; /// The output shows the current time of day, how long the system has been up, and the load averages. /// The load average numbers give the number of jobs in the run queue averaged over 1, 5 and 15 minutes. #[derive(Debug, Parser)] -#[command( - author = "Programvareverkstedet ", - about, - version, -)] +#[command(author = "Programvareverkstedet ", version)] pub struct Args { /// The hosts to query. hosts: Vec, diff --git a/src/bin/ruptime.rs b/src/bin/ruptime.rs index a995ed0..43788c0 100644 --- a/src/bin/ruptime.rs +++ b/src/bin/ruptime.rs @@ -12,11 +12,7 @@ use roowho2_lib::{proto::WhodStatusUpdate, server::varlink_api::VarlinkRwhodClie /// /// Machines for which no status report has been received for 11 minutes are shown as being down. #[derive(Debug, Parser)] -#[command( - author = "Programvareverkstedet ", - about, - version -)] +#[command(author = "Programvareverkstedet ", version)] pub struct Args { /// Users idle an hour or more are not counted unless the `-a` flag is given. #[arg(long, short)] diff --git a/src/bin/rusers.rs b/src/bin/rusers.rs index 44f777d..419f547 100644 --- a/src/bin/rusers.rs +++ b/src/bin/rusers.rs @@ -8,11 +8,7 @@ use clap::Parser; /// the host-name with the names of the users currently logged on is printed on each line. /// The `rusers` command will wait for one minute to catch late responders. #[derive(Debug, Parser)] -#[command( - author = "Programvareverkstedet ", - about, - version, -)] +#[command(author = "Programvareverkstedet ", version)] pub struct Args { /// Print all machines responding even if no one is currently logged in #[arg(long, short)] diff --git a/src/bin/rwall.rs b/src/bin/rwall.rs index 9161065..121281a 100644 --- a/src/bin/rwall.rs +++ b/src/bin/rwall.rs @@ -5,11 +5,7 @@ use clap::Parser; /// The `rwall` command sends a message to the users logged into the specified host. /// The message to be sent can be typed in and terminated with EOF or it can be in a file #[derive(Debug, Parser)] -#[command( - author = "Programvareverkstedet ", - about, - version, -)] +#[command(author = "Programvareverkstedet ", version)] pub struct Args { /// The host to send the message to host: String, diff --git a/src/bin/rwho.rs b/src/bin/rwho.rs index 96441fd..dd68fd1 100644 --- a/src/bin/rwho.rs +++ b/src/bin/rwho.rs @@ -13,11 +13,7 @@ use roowho2_lib::{proto::WhodUserEntry, server::varlink_api::VarlinkRwhodClientP /// If a user hasn't typed to the system for an hour or more, /// then the user will be omitted from the output of `rwho` unless the `-a` flag is given. #[derive(Debug, Parser)] -#[command( - author = "Programvareverkstedet ", - about, - version -)] +#[command(author = "Programvareverkstedet ", version)] pub struct Args { /// Print all machines responding even if no one is currently logged in #[arg(long, short)]