Skip to content

Instantly share code, notes, and snippets.

use structopt::StructOpt;
#[derive(StructOpt)]
struct Cli {
#[structopt(short = "d", long = "debug", )]
/// Enable debug mode
debug: bool,
#[structopt(subcommand)] // Note that we mark a field as a subcommand
action: Actions,
}