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:
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user