use clap::{Parser, Subcommand}; use std::path::PathBuf; #[derive(Debug, Parser)] struct Cli { #[arg(env)] s10e_jrnl_file_loc: PathBuf, #[command(subcommand)] command: Option, } #[derive(Debug, Subcommand)] enum Command { List, Add, } fn main() { let cli = Cli::parse(); println!("Hello, world!"); println!("cli: {cli:#?}") }