use clap::{Parser, Subcommand}; /// A project manager for LaTeX #[derive(Parser, Debug)] #[clap(author, version, about, long_about = None)] pub struct Args { #[command(subcommand)] pub cli: Command, } #[derive(Subcommand, Debug)] pub enum Command { /// Generates a new part #[command(subcommand)] New(SubCommand), } #[derive(Subcommand, Debug)] pub enum SubCommand { /// Adds a section Section { /// Name of the new Section name: String, }, /// Adds a chapter Chapter { /// Name of the new Chapter name: String, }, // /// generates a new project // Project { // /// Name of the new Project // name: String, // /// Name of the first chapter // first_chapter: String, // // /// Name of the first section // // first_section: String, // }, }