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 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<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)]
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,