1use std::path::PathBuf;
3
4pub const EXAMPLES: &str = color_print::cstr!(
6 r#"<blue><bold><underline>Examples</underline></bold></blue>
7- <blue!>xml -> dependencies tree -> stdout</blue!>
8 <cyan!>hkxc tree</cyan!> ./defaultmale.xml
9
10- <blue!>hkx -> dependencies tree -> stdout(+log)</blue!>
11 <cyan!>hkxc tree</cyan!> ./defaultmale.hkx <cyan!>--log-level</cyan!> trace <cyan!>--log-file</cyan!> ./hkx_tree.log
12
13- <blue!>hkx -> dependencies tree -> a file</blue!>
14 <cyan!>hkxc tree</cyan!> ./defaultmale.hkx <cyan!>-o</cyan!> tree.txt
15"#
16);
17
18#[derive(Debug, clap::Args)]
19#[clap(arg_required_else_help = true, after_long_help = EXAMPLES)]
20pub(crate) struct Args {
21 pub input: PathBuf,
23 #[clap(short, long)]
25 pub output: Option<PathBuf>,
26}