1 use clap
::{Args, Parser, Subcommand}
;
4 #[clap(author, version, about, long_about = None)]
5 #[clap(propagate_version = true)]
13 /// Adds files to myapp
23 let cli
= Cli
::parse();
25 // You can check for the existence of subcommands, and if found use their
26 // matches just as you would the top level cmd
28 Commands
::Add(name
) => {
29 println
!("'myapp add' was used, name is: {:?}", name
.name
)