extern crate ptree2 as ptree; use structopt::StructOpt; use ptree::print_config; use ptree::style::{Color, Style}; use std::fs::File; use std::path::PathBuf; #[derive(Clone, Debug, StructOpt)] struct Opt { #[structopt(name = "FILE", parse(from_os_str))] file: PathBuf, #[structopt(short = "d", long = "depth")] depth: Option, #[structopt(short = "o", long = "output", parse(from_os_str))] output: Option, #[structopt(short = "l", long = "leaf-style", parse(from_str = style_from_str))] leaf_style: Option