1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use clap::Parser; /// Migration toolkit for databases #[derive(Debug, Parser)] #[clap(name = "crude")] struct App { #[clap(subcommand)] cmd: Subcommands, } #[derive(Debug, Parser)] enum Subcommands {} fn main() { let program = App::parse(); match program.cmd { // Subcommands::Pie(x) => x.run(), } }