use anyhow::Result;
use clap::Args;
use crate::read_envelope;
#[derive(Debug, Args)]
#[group(skip)]
pub struct CommandArgs {
attachment: Option<String>,
}
impl crate::Exec for CommandArgs {
fn exec(&self) -> Result<String> {
let attachment = read_envelope(self.attachment.as_deref())?;
Ok(attachment.attachment_conforms_to()?.unwrap_or_default())
}
}