1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
//! `project` subcommand use abscissa_core::{Command, Runnable}; use clap::Parser; /// `project` subcommand #[derive(Command, Debug, Parser)] pub struct ProjectSubCmd { // /// Option foobar. Doc comments are the help description // #[clap(short)] // foobar: Option<PathBuf> // /// Baz path // #[clap(long)] // baz: Option<PathBuf> // "free" arguments don't need a macro // free_args: Vec<String>, } impl Runnable for ProjectSubCmd { /// Start the application. fn run(&self) { // Your code goes here } }