use std::path::PathBuf;
use structopt::StructOpt;
#[derive(Debug, Default, StructOpt, Clone)]
#[structopt(
name = "cw",
about = "Count Words - word, line, character and byte count"
)]
pub struct Opt {
#[structopt(short, long)]
pub lines: bool,
#[structopt(short, long)]
pub words: bool,
#[structopt(short = "c", long, overrides_with = "chars", multiple = true)]
pub bytes: bool,
#[structopt(short = "L", long = "max-line-length")]
pub longest_line: bool,
#[structopt(short = "m", long, overrides_with = "bytes", multiple = true)]
pub chars: bool,
#[structopt(long, default_value = "1")]
pub threads: usize,
#[structopt(long = "files-from", parse(from_os_str))]
pub files_from: Option<PathBuf>,
#[structopt(long = "files0-from", parse(from_os_str))]
pub files0_from: Option<PathBuf>,
#[structopt(parse(from_os_str))]
pub input: Vec<PathBuf>,
}