From 966640b59f99dcb9be46e70765e896dce326de34 Mon Sep 17 00:00:00 2001 From: Karcsesz Date: Wed, 14 Feb 2024 21:04:40 +0100 Subject: [PATCH] Slightly improve help command output --- src/args_parser.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/args_parser.rs b/src/args_parser.rs index 9d3fa8d..be9de82 100644 --- a/src/args_parser.rs +++ b/src/args_parser.rs @@ -3,6 +3,7 @@ use std::net::IpAddr; use std::path::PathBuf; use tracing::Level; +/// A simple program to handle serving static WebFinger data. #[derive(Debug, Parser)] #[command(name = "Fingerlink", version, about, long_about = None)] pub struct MainCommand { @@ -77,9 +78,9 @@ pub enum Command { Fetch { #[command(flatten)] save: SaveSettings, - /// The handles to process + /// The handles to process in the format username@domainĂ³ handles: Vec, - /// Set this flag to treat HANDLES as a list of files that contain the handles to process + /// Set this flag to treat HANDLES as a list of file paths that contain the handles to process #[arg(long)] handles_are_files: bool, /// The domain to rewrite the acquired handles' subject domain to. If left unspecified, the domain is kept as-is @@ -88,7 +89,7 @@ pub enum Command { #[command(flatten)] server_reload: ServerReloadOptions, }, - /// Runs a single query against the database and returns the Resource associated with the value + /// Runs a single query against the database and returns the resource associated with the value Query { /// The resource to query for resource: String, @@ -97,7 +98,7 @@ pub enum Command { Editor { #[command(flatten)] save: SaveSettings, - /// Query for the resource to edit + /// The resource to query for and edit resource: String, #[command(flatten)] server_reload: ServerReloadOptions,