feat(ctl): add help and about to commands and arguments (#25)

This commit is contained in:
Alex Zenla
2024-04-05 17:00:02 -07:00
committed by GitHub
parent 2f3daad80a
commit f2ab03711e
8 changed files with 63 additions and 22 deletions

View File

@ -17,10 +17,15 @@ use tonic::{transport::Channel, Request};
use crate::cli::resolve_guest;
#[derive(Parser)]
#[command(about = "Destroy a guest")]
pub struct DestroyCommand {
#[arg(short = 'W', long)]
#[arg(
short = 'W',
long,
help = "Wait for the destruction of the guest to complete"
)]
wait: bool,
#[arg()]
#[arg(help = "Guest to destroy, either the name or the uuid")]
guest: String,
}