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

This commit is contained in:
Alex Zenla
2024-04-04 23:48:13 -07:00
parent 8f7e47a218
commit de04edfe0e
8 changed files with 63 additions and 22 deletions

View File

@ -15,11 +15,12 @@ use crate::console::StdioConsoleStream;
use super::resolve_guest;
#[derive(Parser)]
#[command(about = "View the logs of a guest")]
pub struct LogsCommand {
#[arg()]
guest: String,
#[arg(short, long)]
#[arg(short, long, help = "Follow output from the guest")]
follow: bool,
#[arg(help = "Guest to show logs for, either the name or the uuid")]
guest: String,
}
impl LogsCommand {