DPDUSAGE(1)

πŸ’… dpdusage(1) β€” the "girl, who is even USING this??" detector

okay so you found yourself in the General Commands Manual, and the star of the show is dpdusage(1). she's a tiny little command with a big job and honestly? iconic behaviour. let's get into it 🫢


✨ NAME ✨

dpdusage β€” find unused definitions πŸ”πŸ’€

like... it goes through your stuff and points at the definitions nobody's referencing. the social media cleanse but for code. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

dpdusage [options] input_file.dpd

so yeah bestie, you hand her some options, you hand her an input_file.dpd, and she does her lil thing πŸ’–


πŸŽ€ OPTIONS πŸŽ€

every single one of these, no skips, no cap:

  • -with-defs β€” show EVERYTHING. this is the default, she's a generous queen πŸ‘‘
  • -without-defs β€” show only Prop objects. just the Props, nothing else, she's being selective πŸ’…
  • -rm-trans β€” remove transitive dependencies. this one is the default too ✨
  • -keep-trans β€” keep transitive dependencies. opposite vibes of the one above 🫢
  • -debug β€” set debug mode. turn it on when you wanna see behind the curtain πŸ›
  • -threshold β€” max number of references allowed, and the default is 0. so like, anything at or below your threshold is fair game for "unused" treatment πŸ“
  • -with-path β€” print path. default, she's helpful like that 🌸
  • -without-path β€” do NOT print path. she's mysterious now πŸ™ˆ
  • -v β€” print version and exit. quick lil drive-by, love that for her ⭐
  • -help β€” display this list of options πŸ“‹
  • --help β€” display this list of options πŸ“‹ (same energy, two dashes this time, she contains multitudes)
ngl bestie, -help and --help do the exact same thing. don't overthink it, just pick one and move on πŸ’–

🌈 that's the whole page, mwah πŸ’‹

this lil manual page dropped in June 2022 and she's been living rent free in the General Commands Manual ever since. go find those unused definitions, you main character πŸ”₯πŸ‘‘