Refactor help output formatting for improved clarity and readability

- Updated subcommand help to display one summary line per subcommand, followed by detailed flag descriptions.
- Added individual alignment for flag columns across subcommands for consistent presentation.
- Replaced compact inline summaries with a more structured format to prevent line wrapping and improve visual layout.
- Enhanced flag argument handling by introducing `value
This commit is contained in:
2026-08-11 13:51:18 +02:00
parent b3c87b02da
commit be70c55728
2 changed files with 71 additions and 65 deletions

View File

@@ -71,15 +71,15 @@ pub struct EditArgs {
pub name: String,
/// Enable or disable the self-monitor loopback.
#[arg(short, long)]
#[arg(short, long, value_name = "BOOL")]
pub loopback: Option<bool>,
/// Loopback volume: fraction (0.8) or percent (80).
#[arg(short, long)]
#[arg(short, long, value_name = "PCT")]
pub volume: Option<f32>,
/// Mixed-in source volume: fraction (0.8) or percent (80).
#[arg(long = "source-volume", visible_alias = "sv")]
#[arg(long = "source-volume", visible_alias = "sv", value_name = "PCT")]
pub source_volume: Option<f32>,
}