use chrono::{DateTime, Local};
use punch_clock::Period;
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(name = "punch", about = "Lightweight time-tracking utility.")]
pub enum Opt {
In {
#[structopt(short = "t", long = "time")]
time: Option<DateTime<Local>>,
},
Out {
#[structopt(short = "t", long = "time")]
time: Option<DateTime<Local>>,
},
Status,
Count {
#[structopt(default_value = "today")]
period: Period,
},
}