use clap::Parser;
#[derive(Parser, Debug)]
#[command(name = "ntpwait-rs", about = "Wait for ntpd to synchronize", version)]
struct Cli {
#[arg(short = 't', long, default_value = "30")]
timeout: u32,
#[arg(short = 'p', long, default_value = "1")]
poll_interval: u32,
#[arg(short = 'v', long)]
verbose: bool,
#[arg(short = 'c', long, default_value = "rv 0")]
command: String,
}
fn main() {
let cli = Cli::parse();
println!("ntpwait-rs v{} — NTP wait tool (Rust)", env!("CARGO_PKG_VERSION"));
println!("Waiting up to {} seconds for NTP sync...", cli.timeout);
println!("(Stub — will poll ntpq in Phase 2)");
}