use super::split_args;

#[derive(Debug, Clone)]
pub struct ReminderData {
    pub tags: Vec<String>,
    pub at: Option<String>,
}

impl ReminderData {
    pub fn parse_args(raw: &str) -> Self {
        let p = split_args(raw);
        ReminderData {
            tags: p.tags,
            at: p.attrs.get("at").cloned(),
        }
    }
}
