add: flag to toggle including top level header in outline

This commit is contained in:
agryphus 2026-04-25 18:59:22 -04:00
parent 04ebd38691
commit aa7b1d0a63
2 changed files with 21 additions and 7 deletions

View file

@ -15,6 +15,9 @@ struct Args {
#[arg(short)]
recursive: bool,
#[arg(long)]
include_title_in_outline: bool,
}
fn main() {
@ -28,9 +31,9 @@ fn main() {
let args = Args::parse();
let result = if args.recursive {
compile_all(&args.dir, &args.prepend)
compile_all(&args.dir, &args.prepend, args.include_title_in_outline)
} else {
compile_article(&args.dir, &args.prepend)
compile_article(&args.dir, &args.prepend, args.include_title_in_outline)
};
if let Err(e) = result {