Slightly improve help command output

This commit is contained in:
Karcsesz 2024-02-14 21:04:40 +01:00
parent c6d15c934a
commit 966640b59f

View file

@ -3,6 +3,7 @@ use std::net::IpAddr;
use std::path::PathBuf; use std::path::PathBuf;
use tracing::Level; use tracing::Level;
/// A simple program to handle serving static WebFinger data.
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[command(name = "Fingerlink", version, about, long_about = None)] #[command(name = "Fingerlink", version, about, long_about = None)]
pub struct MainCommand { pub struct MainCommand {
@ -77,9 +78,9 @@ pub enum Command {
Fetch { Fetch {
#[command(flatten)] #[command(flatten)]
save: SaveSettings, save: SaveSettings,
/// The handles to process /// The handles to process in the format username@domainó
handles: Vec<String>, handles: Vec<String>,
/// 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)] #[arg(long)]
handles_are_files: bool, handles_are_files: bool,
/// The domain to rewrite the acquired handles' subject domain to. If left unspecified, the domain is kept as-is /// 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)] #[command(flatten)]
server_reload: ServerReloadOptions, 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 { Query {
/// The resource to query for /// The resource to query for
resource: String, resource: String,
@ -97,7 +98,7 @@ pub enum Command {
Editor { Editor {
#[command(flatten)] #[command(flatten)]
save: SaveSettings, save: SaveSettings,
/// Query for the resource to edit /// The resource to query for and edit
resource: String, resource: String,
#[command(flatten)] #[command(flatten)]
server_reload: ServerReloadOptions, server_reload: ServerReloadOptions,