hewdiff 0.1.0

High-performance review-first terminal diff viewer with PR-style comments
//! Command-line interface (clap).

use clap::Parser;
use std::path::PathBuf;

#[derive(Parser, Debug)]
#[command(name = "hew", version, about = "review-first terminal patch viewer")]
pub struct Cli {
    /// Patch file to review. Omit or use `-` to read from stdin.
    #[arg(value_name = "FILE")]
    pub file: Option<PathBuf>,

    /// Load review comments from a sidecar JSON file before opening.
    #[arg(long, value_name = "FILE")]
    pub comments: Option<PathBuf>,

    /// Print the parsed changeset as JSON and exit (no TUI).
    #[arg(long)]
    pub json: bool,
}